path: root/tools/build/
diff options
authorJiri Olsa <>2014-12-31 17:37:00 +0100
committerArnaldo Carvalho de Melo <>2015-02-12 11:16:56 -0300
commitfcfd6611fbccdbf2593bd949097a5c0e45cd96da (patch)
tree59cba6780e6d5472ac8e608b3e6cf669a93c3b02 /tools/build/
parentc819e2cf2eb6f65d3208d195d7a0edef6108d533 (diff)
tools build: Add detected config support
Adding support to include detected configuration makefile into the build process. This will allow the Build objects to be configurable based on the config data, like: perf-$(CONFIG_KRAVA) += krava.o The configuration is stored in '.config-detected' file, which is generated for each compilation. Signed-off-by: Jiri Olsa <> Tested-by: Sukadev Bhattiprolu <> Tested-by: Will Deacon <> Cc: Alexis Berlemont <> Cc: Borislav Petkov <> Cc: Corey Ashford <> Cc: David Ahern <> Cc: Frederic Weisbecker <> Cc: Namhyung Kim <> Cc: Paul Mackerras <> Cc: Peter Zijlstra <> Cc: Stephane Eranian <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/build/')
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/build/ b/tools/build/
index ae203f21cc86..35174d920476 100644
--- a/tools/build/
+++ b/tools/build/
@@ -22,6 +22,9 @@ build-dir := $(srctree)/tools/build
# Generic definitions
include $(build-dir)/Build.include
+# do not force detected configuration
+-include .config-detected
# Init all relevant variables used in build files so
# 1) they have correct type
# 2) they do not inherit any value from the environment