Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965169AbbLWR6w (ORCPT ); Wed, 23 Dec 2015 12:58:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44526 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964909AbbLWR6q (ORCPT ); Wed, 23 Dec 2015 12:58:46 -0500 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Wang Nan , pi3orama , lizefan@huawei.com Subject: [PATCH 3/5] tools build feature: Introduce feature_ass macro Date: Wed, 23 Dec 2015 18:58:32 +0100 Message-Id: <1450893514-9158-4-git-send-email-jolsa@kernel.org> In-Reply-To: <1450893514-9158-1-git-send-email-jolsa@kernel.org> References: <1450893514-9158-1-git-send-email-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1479 Lines: 41 The feature_ass macro generates feature value assignment for name, like: $(call feature_ass,dwarf) == feature-dwarf=1 This will be used more in following patches. Link: http://lkml.kernel.org/n/tip-jst8x3nv43w0h8afu9mfs07p@git.kernel.org Signed-off-by: Jiri Olsa --- tools/build/Makefile.feature | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index 20753124c8f4..bd6eff14c8f9 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature @@ -122,8 +122,14 @@ define feature_print_text_code MSG = $(shell printf '...%30s: %s' $(1) $(2)) endef +# +# generates feature value assignment for name, like: +# $(call feature_ass,dwarf) == feature-dwarf=1 +# +feature_ass = feature-$(1)=$(feature-$(1)) + FEATURE_DUMP_FILENAME = $(OUTPUT)FEATURE-DUMP$(FEATURE_USER) -FEATURE_DUMP := $(foreach feat,$(FEATURE_DISPLAY),feature-$(feat)($(feature-$(feat)))) +FEATURE_DUMP := $(foreach feat,$(FEATURE_DISPLAY),$(call feature_ass,$(feat))) FEATURE_DUMP_FILE := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME)) # The $(feature_display) controls the default detection message -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/