Skip to content

Commit c9b284b

Browse files
author
H. Peter Anvin
committed
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>
1 parent 9147621 commit c9b284b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/um/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
6464
#This will adjust *FLAGS accordingly to the platform.
6565
include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
6666

67-
KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include
67+
KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \
68+
-I$(HOST_DIR)/include/generated
6869

6970
# -Derrno=kernel_errno - This turns all kernel references to errno into
7071
# kernel_errno to separate them from the libc errno. This allows -fno-common
@@ -96,6 +97,10 @@ endef
9697

9798
KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
9899

100+
archheaders:
101+
$(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \
102+
ARCH=$(SUBARCH) O='$(objtree)' archheaders
103+
99104
archprepare: include/generated/user_constants.h
100105

101106
LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static

0 commit comments

Comments
 (0)