From patchwork Thu Nov 21 14:52:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 21664 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E445B20E7C for ; Thu, 21 Nov 2013 14:52:36 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf4800346oag.1 for ; Thu, 21 Nov 2013 06:52:36 -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=alyl572J+1cxpXw0Yq1B90GVud5LiqJ7KpXYJ3C/CC8BwlviqrQLL1gQ3JkjzMZyx8 qYCJ05rfHyPCsK6D62FanSsK7oRElO7/OylMHMYGvYhrw2BeGhAdxZ1TC6+/tT3EJZNZ ybn2mEsdGPXtecm9eZLbhrHkswOCh/Yt/5OtD18bM6q+EzLbIAzRWNzX1CH51f4JuC34 rOuyhxmlPpPM3UY2FwuruVXnLMvLdl+QpGL6PbpdJqU2PqveCyCubv5ZlxK4raSJh8L9 ZzO+UHO+C3k4w9JDimzNKdELVNTY9tNkaNQE5H8VjU4O3N3kMflDEntUf23fZE4MWFZA NhDw== X-Gm-Message-State: ALoCoQlUDZSg5UnzzefUy8qq75Djam4Pp70tQFGmSfksn+W97NivbBhXzSvGhrZxQ5gUWkDsqgJA X-Received: by 10.182.74.226 with SMTP id x2mr2206649obv.1.1385045556546; Thu, 21 Nov 2013 06:52:36 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.106 with SMTP id o10ls550791qec.36.gmail; Thu, 21 Nov 2013 06:52:36 -0800 (PST) X-Received: by 10.58.210.39 with SMTP id mr7mr6245312vec.18.1385045556455; Thu, 21 Nov 2013 06:52:36 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id s4si11042907vcy.136.2013.11.21.06.52.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 06:52:36 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id lh4so1971589vcb.9 for ; Thu, 21 Nov 2013 06:52:36 -0800 (PST) X-Received: by 10.221.19.5 with SMTP id qi5mr5308692vcb.15.1385045556384; Thu, 21 Nov 2013 06:52:36 -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 u4csp2421vcz; Thu, 21 Nov 2013 06:52:35 -0800 (PST) X-Received: by 10.15.83.8 with SMTP id b8mr6402397eez.6.1385045555505; Thu, 21 Nov 2013 06:52:35 -0800 (PST) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by mx.google.com with ESMTPS id k4si20141273eep.52.2013.11.21.06.52.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 06:52:35 -0800 (PST) Received-SPF: neutral (google.com: 74.125.83.52 is neither permitted nor denied by best guess record for domain of jean.pihet@linaro.org) client-ip=74.125.83.52; Received: by mail-ee0-f52.google.com with SMTP id l10so4758180eei.39 for ; Thu, 21 Nov 2013 06:52:35 -0800 (PST) X-Received: by 10.14.199.197 with SMTP id x45mr9533576een.8.1385045554978; Thu, 21 Nov 2013 06:52:34 -0800 (PST) Received: from localhost.localdomain (226.91-241-81.adsl-dyn.isp.belgacom.be. [81.241.91.226]) by mx.google.com with ESMTPSA id 8sm70903795eem.15.2013.11.21.06.52.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 21 Nov 2013 06:52:34 -0800 (PST) From: Jean Pihet To: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, Will Deacon , Jiri Olsa , Ingo Molnar , Arnaldo Cc: patches@linaro.org, Jean Pihet Subject: [PATCH 1/2] perf: add per-feature check flags Date: Thu, 21 Nov 2013 15:52:18 +0100 Message-Id: <1385045539-24537-2-git-send-email-jean.pihet@linaro.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1385045539-24537-1-git-send-email-jean.pihet@linaro.org> References: <1385045539-24537-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.220.178 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 Acked-by: Ingo Molnar --- 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))