Skip to content

Commit

Permalink
um: Run host archheaders, allow use of host generated headers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin committed Dec 6, 2011
1 parent 9147621 commit c9b284b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
#This will adjust *FLAGS accordingly to the platform.
include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)

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

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

KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig

archheaders:
$(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \
ARCH=$(SUBARCH) O='$(objtree)' archheaders

archprepare: include/generated/user_constants.h

LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
Expand Down

0 comments on commit c9b284b

Please sign in to comment.