Skip to content

Commit 598ff7f

Browse files
galakAnas Nashif
authored and
Anas Nashif
committed
build: Use ZEPHYRINCLUDE when building offsets.o
Rather than having a different set of include paths between offsets.o and all other objects lets just use ZEPHYRINCLUDE. This removes any headaches with needing includes from other paths to get offsets.o to build. Change-Id: I827a6a3d94f786487217bb414e4a25bd8fee4e00 Signed-off-by: Kumar Gala <[email protected]>
1 parent 38139df commit 598ff7f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Diff for: Kbuild

+1-10
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,7 @@ define rule_cc_o_c_1
8888
$(call echo-cmd,cc_o_c_1) $(cmd_cc_o_c_1);
8989
endef
9090

91-
OFFSETS_INCLUDE = $(strip \
92-
-include $(CURDIR)/include/generated/autoconf.h \
93-
-I $(srctree)/include \
94-
-I $(CURDIR)/include/generated \
95-
-I $(srctree)/kernel/include \
96-
$(OFFSETS_INCLUDE_KERNEL_LOCATION) \
97-
-I $(srctree)/lib/libc/minimal/include \
98-
-I $(srctree)/arch/${ARCH}/include )
99-
100-
cmd_cc_o_c_1 = $(CC) $(KBUILD_CFLAGS) $(OFFSETS_INCLUDE) -c -o $@ $<
91+
cmd_cc_o_c_1 = $(CC) $(KBUILD_CFLAGS) $(ZEPHYRINCLUDE) -c -o $@ $<
10192

10293
arch/$(ARCH)/core/offsets/offsets.o: arch/$(ARCH)/core/offsets/offsets.c $(KCONFIG_CONFIG)
10394
$(Q)mkdir -p $(dir $@)

0 commit comments

Comments
 (0)