]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86, um: get rid of header symlinks
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Aug 2008 21:28:20 +0000 (17:28 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 23 Oct 2008 05:55:22 +0000 (22:55 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
50 files changed:
arch/um/Makefile
arch/um/sys-i386/asm/archparam.h [moved from arch/um/include/asm/archparam-i386.h with 100% similarity]
arch/um/sys-i386/asm/elf.h [moved from arch/um/include/asm/elf-i386.h with 100% similarity]
arch/um/sys-i386/asm/module.h [moved from arch/um/include/asm/module-i386.h with 100% similarity]
arch/um/sys-i386/asm/processor.h [moved from arch/um/include/asm/processor-i386.h with 100% similarity]
arch/um/sys-i386/asm/ptrace.h [moved from arch/um/include/asm/ptrace-i386.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/archsetjmp.h [moved from arch/um/sys-i386/sysdep/archsetjmp.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/barrier.h [moved from arch/um/sys-i386/sysdep/barrier.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/checksum.h [moved from arch/um/sys-i386/sysdep/checksum.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/faultinfo.h [moved from arch/um/sys-i386/sysdep/faultinfo.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/host_ldt.h [moved from arch/um/sys-i386/sysdep/host_ldt.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/kernel-offsets.h [moved from arch/um/sys-i386/sysdep/kernel-offsets.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/ptrace.h [moved from arch/um/sys-i386/sysdep/ptrace.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/ptrace_user.h [moved from arch/um/sys-i386/sysdep/ptrace_user.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/sc.h [moved from arch/um/sys-i386/sysdep/sc.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/sigcontext.h [moved from arch/um/sys-i386/sysdep/sigcontext.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/skas_ptrace.h [moved from arch/um/sys-i386/sysdep/skas_ptrace.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/stub.h [moved from arch/um/sys-i386/sysdep/stub.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/syscalls.h [moved from arch/um/sys-i386/sysdep/syscalls.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/system.h [moved from arch/um/sys-i386/sysdep/system.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/tls.h [moved from arch/um/sys-i386/sysdep/tls.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/vm-flags.h [moved from arch/um/sys-i386/sysdep/vm-flags.h with 100% similarity]
arch/um/sys-ppc/asm/archparam.h [moved from arch/um/include/asm/archparam-ppc.h with 100% similarity]
arch/um/sys-ppc/asm/elf.h [moved from arch/um/include/asm/elf-ppc.h with 100% similarity]
arch/um/sys-ppc/asm/processor.h [moved from arch/um/include/asm/processor-ppc.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/ptrace.h [moved from arch/um/sys-ppc/sysdep/ptrace.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/sigcontext.h [moved from arch/um/sys-ppc/sysdep/sigcontext.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/skas_ptrace.h [moved from arch/um/sys-ppc/sysdep/skas_ptrace.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/syscalls.h [moved from arch/um/sys-ppc/sysdep/syscalls.h with 100% similarity]
arch/um/sys-x86_64/asm/archparam.h [moved from arch/um/include/asm/archparam-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/elf.h [moved from arch/um/include/asm/elf-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/module.h [moved from arch/um/include/asm/module-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/processor.h [moved from arch/um/include/asm/processor-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/ptrace.h [moved from arch/um/include/asm/ptrace-x86_64.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/archsetjmp.h [moved from arch/um/sys-x86_64/sysdep/archsetjmp.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/barrier.h [moved from arch/um/sys-x86_64/sysdep/barrier.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/checksum.h [moved from arch/um/sys-x86_64/sysdep/checksum.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/faultinfo.h [moved from arch/um/sys-x86_64/sysdep/faultinfo.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/host_ldt.h [moved from arch/um/sys-x86_64/sysdep/host_ldt.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/kernel-offsets.h [moved from arch/um/sys-x86_64/sysdep/kernel-offsets.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/ptrace.h [moved from arch/um/sys-x86_64/sysdep/ptrace.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/ptrace_user.h [moved from arch/um/sys-x86_64/sysdep/ptrace_user.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/sc.h [moved from arch/um/sys-x86_64/sysdep/sc.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/sigcontext.h [moved from arch/um/sys-x86_64/sysdep/sigcontext.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/skas_ptrace.h [moved from arch/um/sys-x86_64/sysdep/skas_ptrace.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/stub.h [moved from arch/um/sys-x86_64/sysdep/stub.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/syscalls.h [moved from arch/um/sys-x86_64/sysdep/syscalls.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/system.h [moved from arch/um/sys-x86_64/sysdep/system.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/tls.h [moved from arch/um/sys-x86_64/sysdep/tls.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/vm-flags.h [moved from arch/um/sys-x86_64/sysdep/vm-flags.h with 100% similarity]

index bc070cef3ceb27222a5134c2f6ef4dac66f4570a..2606bdaefcb6d7fa9a64aa28a97c1c5f61fd4dac 100644 (file)
@@ -18,28 +18,23 @@ core-y                      += $(ARCH_DIR)/kernel/          \
                           $(ARCH_DIR)/drivers/         \
                           $(ARCH_DIR)/os-$(OS)/
 
-# Have to precede the include because the included Makefiles reference them.
-SYMLINK_HEADERS := archparam.h processor.h ptrace.h module.h elf.h
-SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),$(ARCH_DIR)/include/asm/$(header))
-
 # XXX: The "os" symlink is only used by arch/um/include/os.h, which includes
 # ../os/include/file.h
 #
 # These are cleaned up during mrproper. Please DO NOT fix it again, this is
 # the Correct Thing(tm) to do!
-ARCH_SYMLINKS = $(ARCH_DIR)/os \
-       $(SYMLINK_HEADERS) $(ARCH_DIR)/include/shared/uml-config.h
+ARCH_SYMLINKS = $(ARCH_DIR)/os $(ARCH_DIR)/include/shared/uml-config.h
 
 MODE_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
 
 include $(srctree)/$(ARCH_DIR)/Makefile-skas
 
-ARCH_INCLUDE   := -I$(ARCH_DIR)/include/shared
+ARCH_INCLUDE   := -I$(srctree)/$(ARCH_DIR)/include/shared
+ARCH_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)/shared
 ifneq ($(KBUILD_SRC),)
-ARCH_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/include/shared
-KBUILD_CPPFLAGS        += -I$(ARCH_DIR)/include # for SYMLINK_HEADERS
+ARCH_INCLUDE   += -I$(ARCH_DIR)/include/shared # for three generated files
 endif
-ARCH_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH) # for sysdep
+KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)
 
 # -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so
 # named - it's a common symbol in libpcap, so we get a binary which crashes.
@@ -144,15 +139,6 @@ archclean:
        @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
                -o -name '*.gcov' \) -type f -print | xargs rm -f
 
-$(SYMLINK_HEADERS):
-       @echo '  SYMLINK $@'
-ifneq ($(KBUILD_SRC),)
-       $(Q)mkdir -p $(objtree)/$(ARCH_DIR)/include/asm
-       $(Q)ln -fsn $(srctree)/$(ARCH_DIR)/include/asm/$(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@
-else
-       $(Q)ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@
-endif
-
 $(objtree)/$(ARCH_DIR)/include/shared:
        @echo '  MKDIR $@'
        $(Q)mkdir -p $@