@@ -5,6 +5,9 @@ all:
include config/utilities.mak
+# Read in config if it exists
+-include $(OUTPUT)include/config/auto.conf
+
# Define V to have a more verbose compile.
#
# Define O to save output files in a separate directory.
@@ -203,6 +206,7 @@ ifneq ($(OUTPUT),)
endif
BASIC_CFLAGS = \
+ -I$(OUTPUT)include \
-Iutil/include \
-Iarch/$(ARCH)/include \
$(if $(objtree),-I$(objtree)/arch/$(ARCH)/include/generated/uapi) \
@@ -409,6 +413,7 @@ LIB_H += ui/helpline.h
LIB_H += ui/progress.h
LIB_H += ui/util.h
LIB_H += ui/ui.h
+LIB_H += $(OUTPUT)include/generated/autoconf.h
LIB_OBJS += $(OUTPUT)util/abspath.o
LIB_OBJS += $(OUTPUT)util/alias.o
Add Pconfig file which will hold the build options. Update Makefile with new config files. Signed-off-by: David Ahern <dsahern@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Cc: linux-kbuild@vger.kernel.org --- tools/perf/Makefile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tools/perf/Pconfig diff --git a/tools/perf/Pconfig b/tools/perf/Pconfig new file mode 100644 index 0000000..e69de29