From patchwork Tue Dec 10 12:24:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 22206 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A575723FD8 for ; Tue, 10 Dec 2013 12:24:24 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id uy17sf2134172igb.0 for ; Tue, 10 Dec 2013 04:24:24 -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=JBxsRzV5FarWxMnY5WOhyVfJ8PMM8xRW+EB7c29wjyw=; b=NXOmRcAm1OKj5w6D0iELYsab9gSPEnLw9+UbSexexuDi0CP+V/fVPLf13cyPt00CP7 hzFLHYu0wcl7bdzmPiuQtp5VYvNW9LOn7KDofVh18FuFrPl1H57RGOU0gYHEwCVvmb5a b6rRiNynohC4VTI5JbAs42JWWAP3Sg2xbLQmBic7u8bhUH9kbyqXDfu218EoyGafWHTF PtxSdsQ9zAEv2EcYS3SR08h/ZuOURlg7AcXf7MZR/u9EpfemnaeZmDknJAzzr1cKNPCD cCMIMfBlAz99C6aMnGN4WS79T4uKlyucH9C4tJIZGeK+gpA+NomnGHOVFW+omt6vYV/S yt6A== X-Gm-Message-State: ALoCoQnyz1Et112twarLxzxi74srPq6wvc33cXWblfVkLsc0WvirlV8AIDzKSmKe0kA10+EsuxB/ X-Received: by 10.42.61.137 with SMTP id u9mr7795165ich.0.1386678264270; Tue, 10 Dec 2013 04:24:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.36.161 with SMTP id r1ls2288361qej.71.gmail; Tue, 10 Dec 2013 04:24:24 -0800 (PST) X-Received: by 10.52.163.165 with SMTP id yj5mr493475vdb.42.1386678264143; Tue, 10 Dec 2013 04:24:24 -0800 (PST) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id hs8si5095627veb.60.2013.12.10.04.24.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 04:24:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id m10so483997vbh.28 for ; Tue, 10 Dec 2013 04:24:24 -0800 (PST) X-Received: by 10.52.160.130 with SMTP id xk2mr501338vdb.24.1386678264045; Tue, 10 Dec 2013 04:24:24 -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 u4csp183670vcz; Tue, 10 Dec 2013 04:24:23 -0800 (PST) X-Received: by 10.14.218.129 with SMTP id k1mr141316eep.109.1386678261723; Tue, 10 Dec 2013 04:24:21 -0800 (PST) Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by mx.google.com with ESMTPS id t6si14077470eeh.24.2013.12.10.04.24.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 04:24:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.172 is neither permitted nor denied by best guess record for domain of jean.pihet@linaro.org) client-ip=209.85.215.172; Received: by mail-ea0-f172.google.com with SMTP id q10so2166123ead.3 for ; Tue, 10 Dec 2013 04:24:21 -0800 (PST) X-Received: by 10.15.67.142 with SMTP id u14mr18537828eex.59.1386678260839; Tue, 10 Dec 2013 04:24:20 -0800 (PST) Received: from localhost.localdomain (75.113-241-81.adsl-dyn.isp.belgacom.be. [81.241.113.75]) by mx.google.com with ESMTPSA id l4sm40612051een.13.2013.12.10.04.24.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 04:24:20 -0800 (PST) From: Jean Pihet To: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, Jiri Olsa , Ingo Molnar , Arnaldo Cc: patches@linaro.org, Will Deacon , Jean Pihet Subject: [PATCH 1/2] perf: add per-feature check flags Date: Tue, 10 Dec 2013 13:24:03 +0100 Message-Id: <1386678244-13535-2-git-send-email-jean.pihet@linaro.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1386678244-13535-1-git-send-email-jean.pihet@linaro.org> References: <1386678244-13535-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.212.41 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 bae1072..2afb132 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))