From patchwork Wed Nov 27 20:16:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 21818 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA4C423FE8 for ; Wed, 27 Nov 2013 20:17:05 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf12156348qec.4 for ; Wed, 27 Nov 2013 12:17: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=x50P0FHQo/OoU3qrGNgL/Tj7Wk/lZQiP9O/Lsrs1W/A=; b=GfGnG5ebTFSwSNzYSk3lzxjvkzZ0bf9OZvwcCg+X0fc9Kpaj94vvg02SKTn18Dx8Yi KCjWI/bA77xSp39t+74XPH94oHWLfXapK57sZ8Bu/8g1JCx6FFW4bsCkXMn/zJhsdVJ2 dXBnKQdT+Pt7drnmSbx3m5pefvCtJCmyXjiRs+kyFzoRPm5ZVDoX7fv3w1NxkjVRiCmh RgTnP6EcEjJesuA2e4k5r8EJnMFNMMYCdgjTSRTj6K4G3Xv3/S2yv/nwEKJbOryZY4Eq 9uZ6icRZ34SAI/R5ftqO6JQishWnMcq6ehQ5sDEo8eAEGmgOaOk4ssB5TT3IzGAepLzc PYCg== X-Gm-Message-State: ALoCoQkz/ODhyw5lZjR39u1XGsiMrRXT8z117Dtov4QXbEM5kgYcjP/FyEJmwY/5bFv0shnlM/ZE X-Received: by 10.58.237.10 with SMTP id uy10mr14047286vec.16.1385583425217; Wed, 27 Nov 2013 12:17:05 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.195 with SMTP id a3ls3055487qek.88.gmail; Wed, 27 Nov 2013 12:17:05 -0800 (PST) X-Received: by 10.52.244.15 with SMTP id xc15mr533627vdc.52.1385583425162; Wed, 27 Nov 2013 12:17:05 -0800 (PST) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id sw5si21605097veb.23.2013.11.27.12.17.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 12:17:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id pa12so5638890veb.30 for ; Wed, 27 Nov 2013 12:17:05 -0800 (PST) X-Received: by 10.52.116.74 with SMTP id ju10mr29840703vdb.20.1385583425067; Wed, 27 Nov 2013 12:17: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 u4csp14524vcz; Wed, 27 Nov 2013 12:17:04 -0800 (PST) X-Received: by 10.224.34.71 with SMTP id k7mr69469239qad.15.1385583424535; Wed, 27 Nov 2013 12:17:04 -0800 (PST) Received: from merlin.infradead.org (merlin.infradead.org. [2001:4978:20e::2]) by mx.google.com with ESMTPS id k4si17483677qci.63.2013.11.27.12.17.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2013 12:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of BATV+acb7cea38bfd76e1353d+3748+infradead.org+acme@merlin.srs.infradead.org designates 2001:4978:20e::2 as permitted sender) client-ip=2001:4978:20e::2; Received: from [177.158.179.50] (helo=zoo.ghostprotocols.net) by merlin.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1VllXh-0000m1-9m; Wed, 27 Nov 2013 20:17:01 +0000 Received: by zoo.ghostprotocols.net (Postfix, from userid 1000) id AB7F71E1B75; Wed, 27 Nov 2013 17:16:39 -0300 (BRT) From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Jean Pihet , Arnaldo Carvalho de Melo , Jiri Olsa , Will Deacon , linaro-kernel@lists.linaro.org, patches@linaro.org, Arnaldo Carvalho de Melo Subject: [PATCH 33/34] perf tools: Add per-feature check flags Date: Wed, 27 Nov 2013 17:16:33 -0300 Message-Id: <1385583394-3703-34-git-send-email-acme@infradead.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1385583394-3703-1-git-send-email-acme@infradead.org> References: <1385583394-3703-1-git-send-email-acme@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by merlin.infradead.org See http://www.infradead.org/rpr.html X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: acme@infradead.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.171 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: , From: Jean Pihet 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 Cc: Arnaldo Carvalho de Melo Cc: Ingo Molnar Cc: Jiri Olsa Cc: Will Deacon Cc: linaro-kernel@lists.linaro.org Cc: patches@linaro.org Link: http://lkml.kernel.org/r/1385045539-24537-2-git-send-email-jean.pihet@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- 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 f7d11a811c74..c55149538d92 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))