Commit c9b284b2024e5e2fb7bacfe7f1a71a375562d281
1 parent
9147621c77
Exists in
master
and in
6 other branches
um: Run host archheaders, allow use of host generated headers
Run the "archheaders" target for the host architecture, for architectures (like x86, now) that want to generate some of the necessary header files. Add $(HOST_DIR)/include/generated to the include path so we then pick them up. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff
arch/um/Makefile
... | ... | @@ -64,7 +64,8 @@ |
64 | 64 | #This will adjust *FLAGS accordingly to the platform. |
65 | 65 | include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) |
66 | 66 | |
67 | -KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include | |
67 | +KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ | |
68 | + -I$(HOST_DIR)/include/generated | |
68 | 69 | |
69 | 70 | # -Derrno=kernel_errno - This turns all kernel references to errno into |
70 | 71 | # kernel_errno to separate them from the libc errno. This allows -fno-common |
... | ... | @@ -95,6 +96,10 @@ |
95 | 96 | endef |
96 | 97 | |
97 | 98 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig |
99 | + | |
100 | +archheaders: | |
101 | + $(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \ | |
102 | + ARCH=$(SUBARCH) O='$(objtree)' archheaders | |
98 | 103 | |
99 | 104 | archprepare: include/generated/user_constants.h |
100 | 105 |