diff options
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 88c5b0a52777..94fb24ea5afa 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -21,14 +21,14 @@ core-y += $(ARCH_DIR)/kernel/ \ | |||
21 | # Have to precede the include because the included Makefiles reference them. | 21 | # Have to precede the include because the included Makefiles reference them. |
22 | SYMLINK_HEADERS := archparam.h system.h sigcontext.h processor.h ptrace.h \ | 22 | SYMLINK_HEADERS := archparam.h system.h sigcontext.h processor.h ptrace.h \ |
23 | module.h vm-flags.h elf.h host_ldt.h | 23 | module.h vm-flags.h elf.h host_ldt.h |
24 | SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),include/asm-um/$(header)) | 24 | SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),$(ARCH_DIR)/include/asm/$(header)) |
25 | 25 | ||
26 | # XXX: The "os" symlink is only used by arch/um/include/os.h, which includes | 26 | # XXX: The "os" symlink is only used by arch/um/include/os.h, which includes |
27 | # ../os/include/file.h | 27 | # ../os/include/file.h |
28 | # | 28 | # |
29 | # These are cleaned up during mrproper. Please DO NOT fix it again, this is | 29 | # These are cleaned up during mrproper. Please DO NOT fix it again, this is |
30 | # the Correct Thing(tm) to do! | 30 | # the Correct Thing(tm) to do! |
31 | ARCH_SYMLINKS = include/asm-um/arch $(ARCH_DIR)/include/shared/sysdep $(ARCH_DIR)/os \ | 31 | ARCH_SYMLINKS = $(ARCH_DIR)/include/asm/arch $(ARCH_DIR)/include/shared/sysdep $(ARCH_DIR)/os \ |
32 | $(SYMLINK_HEADERS) $(ARCH_DIR)/include/shared/uml-config.h | 32 | $(SYMLINK_HEADERS) $(ARCH_DIR)/include/shared/uml-config.h |
33 | 33 | ||
34 | MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas | 34 | MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas |
@@ -38,6 +38,7 @@ include $(srctree)/$(ARCH_DIR)/Makefile-skas | |||
38 | ARCH_INCLUDE := -I$(ARCH_DIR)/include/shared | 38 | ARCH_INCLUDE := -I$(ARCH_DIR)/include/shared |
39 | ifneq ($(KBUILD_SRC),) | 39 | ifneq ($(KBUILD_SRC),) |
40 | ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared | 40 | ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared |
41 | KBUILD_CPPFLAGS += -I$(ARCH_DIR)/include # for arch symlink | ||
41 | endif | 42 | endif |
42 | SYS_DIR := $(ARCH_DIR)/include/shared/sysdep-$(SUBARCH) | 43 | SYS_DIR := $(ARCH_DIR)/include/shared/sysdep-$(SUBARCH) |
43 | 44 | ||
@@ -145,19 +146,19 @@ archclean: | |||
145 | $(SYMLINK_HEADERS): | 146 | $(SYMLINK_HEADERS): |
146 | @echo ' SYMLINK $@' | 147 | @echo ' SYMLINK $@' |
147 | ifneq ($(KBUILD_SRC),) | 148 | ifneq ($(KBUILD_SRC),) |
148 | $(Q)mkdir -p $(objtree)/include/asm-um | 149 | $(Q)mkdir -p $(objtree)/$(ARCH_DIR)/include/asm |
149 | $(Q)ln -fsn $(srctree)/include/asm-um/$(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@ | 150 | $(Q)ln -fsn $(srctree)/$(ARCH_DIR)/include/asm/$(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@ |
150 | else | 151 | else |
151 | $(Q)ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@ | 152 | $(Q)ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@ |
152 | endif | 153 | endif |
153 | 154 | ||
154 | include/asm-um/arch: | 155 | $(ARCH_DIR)/include/asm/arch: |
155 | @echo ' SYMLINK $@' | 156 | @echo ' SYMLINK $@' |
156 | ifneq ($(KBUILD_SRC),) | 157 | ifneq ($(KBUILD_SRC),) |
157 | $(Q)mkdir -p $(objtree)/include/asm-um | 158 | $(Q)mkdir -p $(objtree)/$(ARCH_DIR)/include/asm |
158 | $(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) $@ | 159 | $(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) $@ |
159 | else | 160 | else |
160 | $(Q)ln -fsn ../asm-$(HEADER_ARCH) $@ | 161 | $(Q)ln -fsn ../../../../include/asm-$(HEADER_ARCH) $@ |
161 | endif | 162 | endif |
162 | 163 | ||
163 | $(objtree)/$(ARCH_DIR)/include/shared: | 164 | $(objtree)/$(ARCH_DIR)/include/shared: |
@@ -209,6 +210,6 @@ $(ARCH_DIR)/include/shared/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-off | |||
209 | 210 | ||
210 | $(ARCH_DIR)/include/shared/kern_constants.h: $(objtree)/$(ARCH_DIR)/include/shared | 211 | $(ARCH_DIR)/include/shared/kern_constants.h: $(objtree)/$(ARCH_DIR)/include/shared |
211 | @echo ' SYMLINK $@' | 212 | @echo ' SYMLINK $@' |
212 | $(Q)ln -sf ../../../../include/asm-um/asm-offsets.h $@ | 213 | $(Q)ln -sf ../../../../include/asm/asm-offsets.h $@ |
213 | 214 | ||
214 | export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH | 215 | export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH |