diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 15:06:39 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 09:15:05 -0400 |
commit | 5c48b108ecbf6505d929e64d50dace13ac2bdf34 (patch) | |
tree | 016904f84fbe05aa301c5cdfe712d90f6bb828fe /arch/um/Makefile | |
parent | 7bbe7204e93734fe79d8aac3e08a7cb4624b5004 (diff) |
um: take arch/um/sys-x86 to arch/x86/um
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 7492ee5837c4..7730af6ec13f 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -30,13 +30,17 @@ ifeq ($(SUBARCH),x86_64) | |||
30 | HEADER_ARCH := x86 | 30 | HEADER_ARCH := x86 |
31 | endif | 31 | endif |
32 | 32 | ||
33 | HOST_DIR := arch/$(HEADER_ARCH) | ||
34 | |||
33 | include $(srctree)/$(ARCH_DIR)/Makefile-skas | 35 | include $(srctree)/$(ARCH_DIR)/Makefile-skas |
34 | include $(srctree)/$(ARCH_DIR)/Makefile-$(HEADER_ARCH) | 36 | include $(srctree)/$(HOST_DIR)/Makefile.um |
37 | |||
38 | core-y += $(HOST_DIR)/um/ | ||
35 | 39 | ||
36 | SHARED_HEADERS := $(ARCH_DIR)/include/shared | 40 | SHARED_HEADERS := $(ARCH_DIR)/include/shared |
37 | ARCH_INCLUDE := -I$(srctree)/$(SHARED_HEADERS) | 41 | ARCH_INCLUDE := -I$(srctree)/$(SHARED_HEADERS) |
38 | ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/sys-$(HEADER_ARCH)/shared | 42 | ARCH_INCLUDE += -I$(srctree)/$(HOST_DIR)/um/shared |
39 | KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(HEADER_ARCH) | 43 | KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/um |
40 | 44 | ||
41 | # -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so | 45 | # -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so |
42 | # named - it's a common symbol in libpcap, so we get a binary which crashes. | 46 | # named - it's a common symbol in libpcap, so we get a binary which crashes. |
@@ -60,7 +64,7 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ | |||
60 | #This will adjust *FLAGS accordingly to the platform. | 64 | #This will adjust *FLAGS accordingly to the platform. |
61 | include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) | 65 | include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) |
62 | 66 | ||
63 | KBUILD_CPPFLAGS += -I$(srctree)/arch/$(HEADER_ARCH)/include | 67 | KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include |
64 | 68 | ||
65 | # -Derrno=kernel_errno - This turns all kernel references to errno into | 69 | # -Derrno=kernel_errno - This turns all kernel references to errno into |
66 | # kernel_errno to separate them from the libc errno. This allows -fno-common | 70 | # kernel_errno to separate them from the libc errno. This allows -fno-common |
@@ -90,7 +94,7 @@ define archhelp | |||
90 | echo ' find in the kernel root.' | 94 | echo ' find in the kernel root.' |
91 | endef | 95 | endef |
92 | 96 | ||
93 | KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH) | 97 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig |
94 | 98 | ||
95 | archprepare: include/generated/user_constants.h | 99 | archprepare: include/generated/user_constants.h |
96 | 100 | ||
@@ -131,8 +135,8 @@ archclean: | |||
131 | 135 | ||
132 | # Generated files | 136 | # Generated files |
133 | 137 | ||
134 | $(ARCH_DIR)/sys-$(HEADER_ARCH)/user-offsets.s: FORCE | 138 | $(HOST_DIR)/um/user-offsets.s: FORCE |
135 | $(Q)$(MAKE) $(build)=$(ARCH_DIR)/sys-$(HEADER_ARCH) $@ | 139 | $(Q)$(MAKE) $(build)=$(HOST_DIR)/um $@ |
136 | 140 | ||
137 | define filechk_gen-asm-offsets | 141 | define filechk_gen-asm-offsets |
138 | (set -e; \ | 142 | (set -e; \ |
@@ -147,7 +151,7 @@ define filechk_gen-asm-offsets | |||
147 | echo ""; ) | 151 | echo ""; ) |
148 | endef | 152 | endef |
149 | 153 | ||
150 | include/generated/user_constants.h: $(ARCH_DIR)/sys-$(HEADER_ARCH)/user-offsets.s | 154 | include/generated/user_constants.h: $(HOST_DIR)/um/user-offsets.s |
151 | $(call filechk,gen-asm-offsets) | 155 | $(call filechk,gen-asm-offsets) |
152 | 156 | ||
153 | export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH | 157 | export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS DEV_NULL_PATH |