From patchwork Tue Dec 3 16:09:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 21973 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5A46D202FA for ; Tue, 3 Dec 2013 16:10:06 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id ii20sf14274095qab.4 for ; Tue, 03 Dec 2013 08:10:05 -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=kBssr8zvl2C6t6GAYF7w1HPC6/jksk1ysqZ055SvcNMZiVA9E+7HGXV0k+xvvOOQmF YYaVDk36SUzpxya3dHzCu+Zi8F0EotjGllH5DBundjGYGhwVMjgYL4RcUtV06+kkYKjK eP/v2y2npjHKpCm/kFPYRZDkdFBH5o1gD4vxpowa/uG4BnqAvFyntykNFU0gFt+lwFeI qJZoyiUjCnpAKmd7w641pug5KIvDOAW0VCzFC15FP2Ektok/6vgVGEzksXWbSyl2GUIF iEfp1oXVJIw7HKnZzXgRu0+UTIAQeFhd258Cmpd9kdOe3YZfbet6OXp32HDkuoXAf40+ XLmg== X-Gm-Message-State: ALoCoQmdcG94B4BAfwF45go5jY0vTmmhsjbkZSNgwKhTNlorNfZzwN6eE0ofgONQZigK7FRYUicJ X-Received: by 10.236.135.79 with SMTP id t55mr33655658yhi.39.1386087005918; Tue, 03 Dec 2013 08:10:05 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.36.136 with SMTP id q8ls4474747qej.36.gmail; Tue, 03 Dec 2013 08:10:05 -0800 (PST) X-Received: by 10.221.29.200 with SMTP id rz8mr1955420vcb.33.1386087005728; Tue, 03 Dec 2013 08:10:05 -0800 (PST) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id sl9si16685429vdc.151.2013.12.03.08.10.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:10:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.170 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.170; Received: by mail-ve0-f170.google.com with SMTP id oy12so10805839veb.1 for ; Tue, 03 Dec 2013 08:10:05 -0800 (PST) X-Received: by 10.52.113.194 with SMTP id ja2mr145809vdb.61.1386087005411; Tue, 03 Dec 2013 08:10:05 -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 u4csp220180vcz; Tue, 3 Dec 2013 08:10:04 -0800 (PST) X-Received: by 10.15.74.200 with SMTP id j48mr16101eey.102.1386087004362; Tue, 03 Dec 2013 08:10:04 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by mx.google.com with ESMTPS id f45si38889807eev.213.2013.12.03.08.10.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:10:04 -0800 (PST) Received-SPF: neutral (google.com: 74.125.83.53 is neither permitted nor denied by best guess record for domain of jean.pihet@linaro.org) client-ip=74.125.83.53; Received: by mail-ee0-f53.google.com with SMTP id b57so1639457eek.12 for ; Tue, 03 Dec 2013 08:10:03 -0800 (PST) X-Received: by 10.14.223.198 with SMTP id v46mr5402804eep.20.1386087003944; Tue, 03 Dec 2013 08:10:03 -0800 (PST) Received: from localhost.localdomain (218.118-241-81.adsl-dyn.isp.belgacom.be. [81.241.118.218]) by mx.google.com with ESMTPSA id o1sm40627437eea.10.2013.12.03.08.10.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:10:03 -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: Tue, 3 Dec 2013 17:09:45 +0100 Message-Id: <1386086986-30805-2-git-send-email-jean.pihet@linaro.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1386086986-30805-1-git-send-email-jean.pihet@linaro.org> References: <1386086986-30805-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.170 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))