From patchwork Sat Dec 7 10:17:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 22139 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 424A923FD2 for ; Sat, 7 Dec 2013 10:17:56 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 6sf3587783qea.1 for ; Sat, 07 Dec 2013 02:17:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=rIZhWOHI2BdW7LkR+xTC0urq0nEBtSSJpmJB2raRd/4=; b=btM7wRhZYSusE+QthDzdnaSHWFwrS9Q+v4shvm7P5ju0X204+wsWTEiN94FwHLpzem mxjjkwGToxCr+MpOnzUbhoFvlD3T7MHPb3fY6H5Vtb6RhxRgl81/zNF49wUqiWdHsqEV zSAuB6SA19tzx+aoEVUOSTr5zrAORyxS4rapO1v+9umxYkM/Yd3AtBRBdzMSvCD30+Ql Gsy87UER7QetB2Uakm06oy8nvD2/g/RSI+boP8kDbKENNsg3RcpGwcsiJ4uH486Wo0y9 nk5U/irNIDlqeiXpKIvyERNnw8WEw33zeSkwtGCAVYZHlvqRk8x+zlTCM/4w5zwD4hkH QMbw== X-Gm-Message-State: ALoCoQkRZ2q6CeNgppMuSzRraEaaaE5wdgcpv/g9NgbtRM/V26CXeF0xrOEYbjW7N77NaCmoC3ZX X-Received: by 10.58.50.202 with SMTP id e10mr15665veo.41.1386411475877; Sat, 07 Dec 2013 02:17:55 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.105 with SMTP id j9ls1668049qej.94.gmail; Sat, 07 Dec 2013 02:17:55 -0800 (PST) X-Received: by 10.52.245.42 with SMTP id xl10mr10943vdc.35.1386411475643; Sat, 07 Dec 2013 02:17:55 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id gx6si673056vdc.154.2013.12.07.02.17.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Dec 2013 02:17:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id jx11so1908521veb.34 for ; Sat, 07 Dec 2013 02:17:55 -0800 (PST) X-Received: by 10.53.2.36 with SMTP id bl4mr53454vdd.32.1386411475468; Sat, 07 Dec 2013 02:17:55 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp163447vcz; Sat, 7 Dec 2013 02:17:55 -0800 (PST) X-Received: by 10.14.69.200 with SMTP id n48mr5835366eed.54.1386411474623; Sat, 07 Dec 2013 02:17:54 -0800 (PST) Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by mx.google.com with ESMTPS id a9si1403208eew.54.2013.12.07.02.17.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Dec 2013 02:17:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.180 is neither permitted nor denied by best guess record for domain of jean.pihet@linaro.org) client-ip=209.85.215.180; Received: by mail-ea0-f180.google.com with SMTP id f15so705745eak.11 for ; Sat, 07 Dec 2013 02:17:54 -0800 (PST) X-Received: by 10.14.208.199 with SMTP id q47mr269690eeo.77.1386411474226; Sat, 07 Dec 2013 02:17:54 -0800 (PST) Received: from localhost.localdomain (240.120-241-81.adsl-dyn.isp.belgacom.be. [81.241.120.240]) by mx.google.com with ESMTPSA id p45sm4985203eeg.1.2013.12.07.02.17.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 07 Dec 2013 02:17:53 -0800 (PST) From: Jean Pihet To: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, Jiri Olsa , Ingo Molnar , Arnaldo , Will Deacon Cc: patches@linaro.org, Jean Pihet Subject: [PATCH 1/2] perf: add per-feature check flags Date: Sat, 7 Dec 2013 11:17:40 +0100 Message-Id: <1386411461-21510-2-git-send-email-jean.pihet@linaro.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1386411461-21510-1-git-send-email-jean.pihet@linaro.org> References: <1386411461-21510-1-git-send-email-jean.pihet@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jean.pihet@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add CFLAGS and LDFLAGS for each feature to be checked. This allows to pass flags and parameters to the feature checks compilation. Also simplifies the feature check makefile, to come in a subsequent patch. Signed-off-by: Jean Pihet --- tools/perf/config/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index f7d11a8..c551495 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -102,7 +102,7 @@ endif feature_check = $(eval $(feature_check_code)) define feature_check_code - feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBUNWIND_LIBS="$(LIBUNWIND_LIBS)" -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0) + feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" LIBUNWIND_LIBS="$(LIBUNWIND_LIBS)" -C config/feature-checks test-$1 >/dev/null 2>/dev/null && echo 1 || echo 0) endef feature_set = $(eval $(feature_set_code))