diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-12-05 19:03:30 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-12-05 19:03:30 -0500 |
commit | c9b284b2024e5e2fb7bacfe7f1a71a375562d281 (patch) | |
tree | 6cf3f25d15552efd90b21ab1ab12607b07c2a7c9 /arch/um | |
parent | 9147621c771c8b6a5c8985373af3a8200e8b4a41 (diff) |
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>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 7730af6ec13f..00210e9bf202 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -64,7 +64,8 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ | |||
64 | #This will adjust *FLAGS accordingly to the platform. | 64 | #This will adjust *FLAGS accordingly to the platform. |
65 | include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) | 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 | # -Derrno=kernel_errno - This turns all kernel references to errno into | 70 | # -Derrno=kernel_errno - This turns all kernel references to errno into |
70 | # kernel_errno to separate them from the libc errno. This allows -fno-common | 71 | # kernel_errno to separate them from the libc errno. This allows -fno-common |
@@ -96,6 +97,10 @@ endef | |||
96 | 97 | ||
97 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig | 98 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig |
98 | 99 | ||
100 | archheaders: | ||
101 | $(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \ | ||
102 | ARCH=$(SUBARCH) O='$(objtree)' archheaders | ||
103 | |||
99 | archprepare: include/generated/user_constants.h | 104 | archprepare: include/generated/user_constants.h |
100 | 105 | ||
101 | LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static | 106 | LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static |