From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755538AbcIIWYC (ORCPT ); Fri, 9 Sep 2016 18:24:02 -0400 Received: from resqmta-po-11v.sys.comcast.net ([96.114.154.170]:49912 "EHLO resqmta-po-11v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932214AbcIIWXJ (ORCPT ); Fri, 9 Sep 2016 18:23:09 -0400 From: Shuah Khan To: corbet@lwn.net, richardcochran@gmail.com Cc: Shuah Khan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 7/9] selftests: Update ptp Makefile to work under selftests Date: Fri, 9 Sep 2016 16:22:48 -0600 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-CMAE-Envelope: MS4wfOEZ8FXnLfjvSIXumsGJHMpUUpLzMkc28gJI6vcXyyB3WmWxNtBtKghmxQHvALhmEwoS74+JrrReE7wGU/gA9wS8PCBmUs3FDlZS/WCtO/AZ2HgqEsy8 5XIUm9LWFBtmV0rGcEKDjuT4eOiqoOAnYoZgHwRKjxPFzVdnCqRPrclp2hZuh/JZB/ElgJ/78LIJxbEHcbWp2ZzeY7Coph0inDvASCK0L7gbN/IbCXACa1cV HdYrpGQJKXr/rJg+cfHIoJdqriOj7pjbZ+y3guNbpIkm3o2r9IlaYXsmcoJ8c0nV7+t6UdkRbTmmWyNzUqToIEROtjZdjEbJWvYhOPZUlPK/rKfq/me2U6ol om9cbXVtG6bNX5QhZKk4qQu83LOVAWiFGfdNu5FxxSBt0VA7t1z3cojih/oozyIZBtWEEgJ4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update ptp Makefile to work under selftests. ptp will not be run as part of selftests suite and will not included in install targets. They can be built separately for now. Signed-off-by: Shuah Khan --- tools/testing/selftests/ptp/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile index 293d6c0..f4a7238 100644 --- a/tools/testing/selftests/ptp/Makefile +++ b/tools/testing/selftests/ptp/Makefile @@ -1,8 +1,8 @@ -# List of programs to build -hostprogs-y := testptp +TEST_PROGS := testptp +LDLIBS += -lrt +all: $(TEST_PROGS) -# Tell kbuild to always build the programs -always := $(hostprogs-y) +include ../lib.mk -HOSTCFLAGS_testptp.o += -I$(objtree)/usr/include -HOSTLOADLIBES_testptp := -lrt +clean: + rm -fr testptp -- 2.7.4