summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2015-08-28 15:41:09 -0400
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:15:33 -0500
commit3a6ac16eae87fab1973156d8bdff82f1f8c4065d (patch)
tree2c8e3960a4043577200cc5caa612e8433620a7af /Kbuild
parent13a0223cdaf40c3e129c23786a06a068dc71b4f1 (diff)
Kbuild: include autoconf.h when building offsets
USERINCLUDE not needed anymore. Change-Id: I0c975d93686c6f5bb3025cd2dffd88a859ad5ebe Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kbuild b/Kbuild
index 1b3fcf06b..cb97e73d4 100644
--- a/Kbuild
+++ b/Kbuild
@@ -80,6 +80,7 @@ define rule_cc_o_c_1
endef
OFFSETS_INCLUDE = $(strip \
+ -include $(CURDIR)/include/generated/autoconf.h \
-I $(srctree)/include \
-I $(CURDIR)/include/generated \
-I $(srctree)/kernel/microkernel/include \
@@ -87,7 +88,7 @@ OFFSETS_INCLUDE = $(strip \
-I $(srctree)/lib/libc/minimal/include \
-I $(srctree)/arch/${SRCARCH}/include )
-cmd_cc_o_c_1 = $(CC) $(KBUILD_CFLAGS) $(OFFSETS_INCLUDE) -include $(CURDIR)/include/generated/autoconf.h $(USERINCLUDE) -c -o $@ $<
+cmd_cc_o_c_1 = $(CC) $(KBUILD_CFLAGS) $(OFFSETS_INCLUDE) -c -o $@ $<
arch/$(SRCARCH)/core/offsets/offsets.o: arch/$(SRCARCH)/core/offsets/offsets.c
$(Q)mkdir -p $(dir $@)