From patchwork Fri Sep 9 22:22:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 668307 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sWBkb0DT8z9sXy for ; Sat, 10 Sep 2016 08:31:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755640AbcIIWbR (ORCPT ); Fri, 9 Sep 2016 18:31:17 -0400 Received: from resqmta-po-05v.sys.comcast.net ([96.114.154.164]:38178 "EHLO resqmta-po-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755608AbcIIWbP (ORCPT ); Fri, 9 Sep 2016 18:31:15 -0400 Received: from resomta-po-15v.sys.comcast.net ([96.114.154.239]) by resqmta-po-05v.sys.comcast.net with SMTP id iUCQbtsyrcEL1iUCQb7pOA; Fri, 09 Sep 2016 22:23:06 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-15v.sys.comcast.net with SMTP id iUCPbCTqO1h62iUCPbB4Up; Fri, 09 Sep 2016 22:23:05 +0000 Received: from shuah-XPS-13-9350.sisa.samsung.com (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id 00A809F340; Fri, 9 Sep 2016 16:23:04 -0600 (MDT) 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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