From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbcIIWXL (ORCPT ); Fri, 9 Sep 2016 18:23:11 -0400 Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:33031 "EHLO resqmta-po-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754430AbcIIWXG (ORCPT ); Fri, 9 Sep 2016 18:23:06 -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 5/9] selftests: Update prctl Makefile to work under selftests Date: Fri, 9 Sep 2016 16:22:46 -0600 Message-Id: <77650824f1e884b0999dc3ed258cdfaae159aa6b.1473458697.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-CMAE-Envelope: MS4wfCiAj0rtrlqV0DXhSCucTgz9s+sVMrvy2zgNNqHCO5LQU/woX+Xiw+bQtmx0dP2+P1YjlipFKcjh/flQvjgt5vJKjTI8snDxY5o3gqCXswnQkhzvhhBR +lZnoyzyZ9NHdwF2XVTgp7oLxWk+yW2f2VacFIRx1vfgk6R06FWSGJ/PpmRE5EozAFD/f8G06PsEC3hAQpo1qmdGzaqKRCqWPwpNblpUrbqn/G63L/So3e41 GLyK+UjwD7nI5X+5SrBxoQNCpXJ5mJSUrGIFT+3W8YXU3eZjXLwyJa1ZDQngYfuRg4hwxVklo7lxnQstEH0acIE7w5FGl1pvt6ApLZ5IpGEeXSt4mCkkkyLb HK4EBs9e+KtM/TRbpfTCTc7bdqCb4VO881FQHwsJCLgRh7lXkkHo9lvKLWd1SDATE5p5Kf/U Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update prctl Makefile to work under selftests. prctl 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/prctl/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/prctl/Makefile b/tools/testing/selftests/prctl/Makefile index 44de308..35aa1c8 100644 --- a/tools/testing/selftests/prctl/Makefile +++ b/tools/testing/selftests/prctl/Makefile @@ -1,10 +1,15 @@ ifndef CROSS_COMPILE -# List of programs to build -hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test -# Tell kbuild to always build the programs -always := $(hostprogs-y) +uname_M := $(shell uname -m 2>/dev/null || echo not) +ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) -HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include -HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include -HOSTCFLAGS_disable-tsc-test.o += -I$(objtree)/usr/include +ifeq ($(ARCH),x86) +TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \ + disable-tsc-test +all: $(TEST_PROGS) + +include ../lib.mk + +clean: + rm -fr $(TEST_PROGS) +endif endif -- 2.7.4