aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r--arch/um/Makefile17
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.
22SYMLINK_HEADERS := archparam.h system.h sigcontext.h processor.h ptrace.h \ 22SYMLINK_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
24SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),include/asm-um/$(header)) 24SYMLINK_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!
31ARCH_SYMLINKS = include/asm-um/arch $(ARCH_DIR)/include/shared/sysdep $(ARCH_DIR)/os \ 31ARCH_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
34MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas 34MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
@@ -38,6 +38,7 @@ include $(srctree)/$(ARCH_DIR)/Makefile-skas
38ARCH_INCLUDE := -I$(ARCH_DIR)/include/shared 38ARCH_INCLUDE := -I$(ARCH_DIR)/include/shared
39ifneq ($(KBUILD_SRC),) 39ifneq ($(KBUILD_SRC),)
40ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared 40ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared
41KBUILD_CPPFLAGS += -I$(ARCH_DIR)/include # for arch symlink
41endif 42endif
42SYS_DIR := $(ARCH_DIR)/include/shared/sysdep-$(SUBARCH) 43SYS_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 $@'
147ifneq ($(KBUILD_SRC),) 148ifneq ($(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 $@) $@
150else 151else
151 $(Q)ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@ 152 $(Q)ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@
152endif 153endif
153 154
154include/asm-um/arch: 155$(ARCH_DIR)/include/asm/arch:
155 @echo ' SYMLINK $@' 156 @echo ' SYMLINK $@'
156ifneq ($(KBUILD_SRC),) 157ifneq ($(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) $@
159else 160else
160 $(Q)ln -fsn ../asm-$(HEADER_ARCH) $@ 161 $(Q)ln -fsn ../../../../include/asm-$(HEADER_ARCH) $@
161endif 162endif
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
214export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH 215export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH