aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/um/Makefile7
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.
65include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) 65include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
66 66
67KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include 67KBUILD_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
97KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig 98KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
98 99
100archheaders:
101 $(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \
102 ARCH=$(SUBARCH) O='$(objtree)' archheaders
103
99archprepare: include/generated/user_constants.h 104archprepare: include/generated/user_constants.h
100 105
101LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static 106LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static