]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
um: take arch/um/sys-x86 to arch/x86/um
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 18 Aug 2011 19:06:39 +0000 (20:06 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 2 Nov 2011 13:15:05 +0000 (14:15 +0100)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
93 files changed:
arch/um/Makefile
arch/um/os-Linux/Makefile
arch/um/scripts/Makefile.rules
arch/x86/Makefile.um [moved from arch/um/Makefile-x86 with 97% similarity]
arch/x86/um/Kconfig [moved from arch/um/Kconfig.x86 with 100% similarity]
arch/x86/um/Makefile [moved from arch/um/sys-x86/Makefile with 61% similarity]
arch/x86/um/asm/arch_hweight.h [moved from arch/um/sys-x86/asm/arch_hweight.h with 100% similarity]
arch/x86/um/asm/archparam.h [moved from arch/um/sys-x86/asm/archparam.h with 100% similarity]
arch/x86/um/asm/checksum.h [moved from arch/um/sys-x86/asm/checksum.h with 100% similarity]
arch/x86/um/asm/checksum_32.h [moved from arch/um/sys-x86/asm/checksum_32.h with 100% similarity]
arch/x86/um/asm/checksum_64.h [moved from arch/um/sys-x86/asm/checksum_64.h with 100% similarity]
arch/x86/um/asm/elf.h [moved from arch/um/sys-x86/asm/elf.h with 100% similarity]
arch/x86/um/asm/module.h [moved from arch/um/sys-x86/asm/module.h with 100% similarity]
arch/x86/um/asm/processor.h [moved from arch/um/sys-x86/asm/processor.h with 100% similarity]
arch/x86/um/asm/processor_32.h [moved from arch/um/sys-x86/asm/processor_32.h with 100% similarity]
arch/x86/um/asm/processor_64.h [moved from arch/um/sys-x86/asm/processor_64.h with 100% similarity]
arch/x86/um/asm/ptrace.h [moved from arch/um/sys-x86/asm/ptrace.h with 100% similarity]
arch/x86/um/asm/ptrace_32.h [moved from arch/um/sys-x86/asm/ptrace_32.h with 100% similarity]
arch/x86/um/asm/ptrace_64.h [moved from arch/um/sys-x86/asm/ptrace_64.h with 100% similarity]
arch/x86/um/asm/system.h [moved from arch/um/sys-x86/asm/system.h with 100% similarity]
arch/x86/um/asm/vm-flags.h [moved from arch/um/sys-x86/asm/vm-flags.h with 100% similarity]
arch/x86/um/bug.c [moved from arch/um/sys-x86/bug.c with 100% similarity]
arch/x86/um/bugs_32.c [moved from arch/um/sys-x86/bugs_32.c with 100% similarity]
arch/x86/um/bugs_64.c [moved from arch/um/sys-x86/bugs_64.c with 100% similarity]
arch/x86/um/checksum_32.S [moved from arch/um/sys-x86/checksum_32.S with 100% similarity]
arch/x86/um/delay_32.c [moved from arch/um/sys-x86/delay_32.c with 100% similarity]
arch/x86/um/delay_64.c [moved from arch/um/sys-x86/delay_64.c with 100% similarity]
arch/x86/um/elfcore.c [moved from arch/um/sys-x86/elfcore.c with 100% similarity]
arch/x86/um/fault.c [moved from arch/um/sys-x86/fault.c with 100% similarity]
arch/x86/um/ksyms.c [moved from arch/um/sys-x86/ksyms.c with 100% similarity]
arch/x86/um/ldt.c [moved from arch/um/sys-x86/ldt.c with 100% similarity]
arch/x86/um/mem_32.c [moved from arch/um/sys-x86/mem_32.c with 100% similarity]
arch/x86/um/mem_64.c [moved from arch/um/sys-x86/mem_64.c with 100% similarity]
arch/x86/um/os-Linux/Makefile [moved from arch/um/os-Linux/sys-x86/Makefile with 100% similarity]
arch/x86/um/os-Linux/mcontext.c [moved from arch/um/os-Linux/sys-x86/mcontext.c with 100% similarity]
arch/x86/um/os-Linux/prctl.c [moved from arch/um/os-Linux/sys-x86/prctl.c with 100% similarity]
arch/x86/um/os-Linux/registers.c [moved from arch/um/os-Linux/sys-x86/registers.c with 100% similarity]
arch/x86/um/os-Linux/task_size.c [moved from arch/um/os-Linux/sys-x86/task_size.c with 100% similarity]
arch/x86/um/os-Linux/tls.c [moved from arch/um/os-Linux/sys-x86/tls.c with 100% similarity]
arch/x86/um/ptrace_32.c [moved from arch/um/sys-x86/ptrace_32.c with 100% similarity]
arch/x86/um/ptrace_64.c [moved from arch/um/sys-x86/ptrace_64.c with 100% similarity]
arch/x86/um/ptrace_user.c [moved from arch/um/sys-x86/ptrace_user.c with 100% similarity]
arch/x86/um/setjmp_32.S [moved from arch/um/sys-x86/setjmp_32.S with 100% similarity]
arch/x86/um/setjmp_64.S [moved from arch/um/sys-x86/setjmp_64.S with 100% similarity]
arch/x86/um/shared/sysdep/archsetjmp.h [moved from arch/um/sys-x86/shared/sysdep/archsetjmp.h with 100% similarity]
arch/x86/um/shared/sysdep/archsetjmp_32.h [moved from arch/um/sys-x86/shared/sysdep/archsetjmp_32.h with 100% similarity]
arch/x86/um/shared/sysdep/archsetjmp_64.h [moved from arch/um/sys-x86/shared/sysdep/archsetjmp_64.h with 100% similarity]
arch/x86/um/shared/sysdep/faultinfo.h [moved from arch/um/sys-x86/shared/sysdep/faultinfo.h with 100% similarity]
arch/x86/um/shared/sysdep/faultinfo_32.h [moved from arch/um/sys-x86/shared/sysdep/faultinfo_32.h with 100% similarity]
arch/x86/um/shared/sysdep/faultinfo_64.h [moved from arch/um/sys-x86/shared/sysdep/faultinfo_64.h with 100% similarity]
arch/x86/um/shared/sysdep/host_ldt.h [moved from arch/um/sys-x86/shared/sysdep/host_ldt.h with 100% similarity]
arch/x86/um/shared/sysdep/host_ldt_32.h [moved from arch/um/sys-x86/shared/sysdep/host_ldt_32.h with 100% similarity]
arch/x86/um/shared/sysdep/host_ldt_64.h [moved from arch/um/sys-x86/shared/sysdep/host_ldt_64.h with 100% similarity]
arch/x86/um/shared/sysdep/kernel-offsets.h [moved from arch/um/sys-x86/shared/sysdep/kernel-offsets.h with 100% similarity]
arch/x86/um/shared/sysdep/mcontext.h [moved from arch/um/sys-x86/shared/sysdep/mcontext.h with 100% similarity]
arch/x86/um/shared/sysdep/ptrace.h [moved from arch/um/sys-x86/shared/sysdep/ptrace.h with 100% similarity]
arch/x86/um/shared/sysdep/ptrace_32.h [moved from arch/um/sys-x86/shared/sysdep/ptrace_32.h with 100% similarity]
arch/x86/um/shared/sysdep/ptrace_64.h [moved from arch/um/sys-x86/shared/sysdep/ptrace_64.h with 100% similarity]
arch/x86/um/shared/sysdep/ptrace_user.h [moved from arch/um/sys-x86/shared/sysdep/ptrace_user.h with 100% similarity]
arch/x86/um/shared/sysdep/ptrace_user_32.h [moved from arch/um/sys-x86/shared/sysdep/ptrace_user_32.h with 100% similarity]
arch/x86/um/shared/sysdep/ptrace_user_64.h [moved from arch/um/sys-x86/shared/sysdep/ptrace_user_64.h with 100% similarity]
arch/x86/um/shared/sysdep/skas_ptrace.h [moved from arch/um/sys-x86/shared/sysdep/skas_ptrace.h with 100% similarity]
arch/x86/um/shared/sysdep/stub.h [moved from arch/um/sys-x86/shared/sysdep/stub.h with 100% similarity]
arch/x86/um/shared/sysdep/stub_32.h [moved from arch/um/sys-x86/shared/sysdep/stub_32.h with 100% similarity]
arch/x86/um/shared/sysdep/stub_64.h [moved from arch/um/sys-x86/shared/sysdep/stub_64.h with 100% similarity]
arch/x86/um/shared/sysdep/syscalls.h [moved from arch/um/sys-x86/shared/sysdep/syscalls.h with 100% similarity]
arch/x86/um/shared/sysdep/syscalls_32.h [moved from arch/um/sys-x86/shared/sysdep/syscalls_32.h with 100% similarity]
arch/x86/um/shared/sysdep/syscalls_64.h [moved from arch/um/sys-x86/shared/sysdep/syscalls_64.h with 100% similarity]
arch/x86/um/shared/sysdep/tls.h [moved from arch/um/sys-x86/shared/sysdep/tls.h with 100% similarity]
arch/x86/um/shared/sysdep/tls_32.h [moved from arch/um/sys-x86/shared/sysdep/tls_32.h with 100% similarity]
arch/x86/um/shared/sysdep/tls_64.h [moved from arch/um/sys-x86/shared/sysdep/tls_64.h with 100% similarity]
arch/x86/um/signal_32.c [moved from arch/um/sys-x86/signal_32.c with 100% similarity]
arch/x86/um/signal_64.c [moved from arch/um/sys-x86/signal_64.c with 100% similarity]
arch/x86/um/stub_32.S [moved from arch/um/sys-x86/stub_32.S with 100% similarity]
arch/x86/um/stub_64.S [moved from arch/um/sys-x86/stub_64.S with 100% similarity]
arch/x86/um/stub_segv.c [moved from arch/um/sys-x86/stub_segv.c with 100% similarity]
arch/x86/um/sys_call_table_32.S [moved from arch/um/sys-x86/sys_call_table_32.S with 100% similarity]
arch/x86/um/sys_call_table_64.c [moved from arch/um/sys-x86/sys_call_table_64.c with 100% similarity]
arch/x86/um/syscalls_32.c [moved from arch/um/sys-x86/syscalls_32.c with 100% similarity]
arch/x86/um/syscalls_64.c [moved from arch/um/sys-x86/syscalls_64.c with 100% similarity]
arch/x86/um/sysrq_32.c [moved from arch/um/sys-x86/sysrq_32.c with 100% similarity]
arch/x86/um/sysrq_64.c [moved from arch/um/sys-x86/sysrq_64.c with 100% similarity]
arch/x86/um/tls_32.c [moved from arch/um/sys-x86/tls_32.c with 100% similarity]
arch/x86/um/tls_64.c [moved from arch/um/sys-x86/tls_64.c with 100% similarity]
arch/x86/um/user-offsets.c [moved from arch/um/sys-x86/user-offsets.c with 100% similarity]
arch/x86/um/vdso/Makefile [moved from arch/um/sys-x86/vdso/Makefile with 100% similarity]
arch/x86/um/vdso/checkundef.sh [moved from arch/um/sys-x86/vdso/checkundef.sh with 100% similarity]
arch/x86/um/vdso/um_vdso.c [moved from arch/um/sys-x86/vdso/um_vdso.c with 100% similarity]
arch/x86/um/vdso/vdso-layout.lds.S [moved from arch/um/sys-x86/vdso/vdso-layout.lds.S with 100% similarity]
arch/x86/um/vdso/vdso-note.S [moved from arch/um/sys-x86/vdso/vdso-note.S with 100% similarity]
arch/x86/um/vdso/vdso.S [moved from arch/um/sys-x86/vdso/vdso.S with 70% similarity]
arch/x86/um/vdso/vdso.lds.S [moved from arch/um/sys-x86/vdso/vdso.lds.S with 100% similarity]
arch/x86/um/vdso/vma.c [moved from arch/um/sys-x86/vdso/vma.c with 100% similarity]

index 7492ee5837c48b31102c2413f40c88b270620ad9..7730af6ec13feba4898ca3a8e85e3e416c57c33d 100644 (file)
@@ -30,13 +30,17 @@ ifeq ($(SUBARCH),x86_64)
         HEADER_ARCH := x86
 endif
 
+HOST_DIR := arch/$(HEADER_ARCH)
+
 include $(srctree)/$(ARCH_DIR)/Makefile-skas
-include $(srctree)/$(ARCH_DIR)/Makefile-$(HEADER_ARCH)
+include $(srctree)/$(HOST_DIR)/Makefile.um
+
+core-y += $(HOST_DIR)/um/
 
 SHARED_HEADERS := $(ARCH_DIR)/include/shared
 ARCH_INCLUDE   := -I$(srctree)/$(SHARED_HEADERS)
-ARCH_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/sys-$(HEADER_ARCH)/shared
-KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(HEADER_ARCH)
+ARCH_INCLUDE   += -I$(srctree)/$(HOST_DIR)/um/shared
+KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/um
 
 # -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.
@@ -60,7 +64,7 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
 #This will adjust *FLAGS accordingly to the platform.
 include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
 
-KBUILD_CPPFLAGS += -I$(srctree)/arch/$(HEADER_ARCH)/include
+KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include
 
 # -Derrno=kernel_errno - This turns all kernel references to errno into
 # kernel_errno to separate them from the libc errno.  This allows -fno-common
@@ -90,7 +94,7 @@ define archhelp
   echo '                  find in the kernel root.'
 endef
 
-KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH)
+KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
 
 archprepare: include/generated/user_constants.h
 
@@ -131,8 +135,8 @@ archclean:
 
 # Generated files
 
-$(ARCH_DIR)/sys-$(HEADER_ARCH)/user-offsets.s: FORCE
-       $(Q)$(MAKE) $(build)=$(ARCH_DIR)/sys-$(HEADER_ARCH) $@
+$(HOST_DIR)/um/user-offsets.s: FORCE
+       $(Q)$(MAKE) $(build)=$(HOST_DIR)/um $@
 
 define filechk_gen-asm-offsets
         (set -e; \
@@ -147,7 +151,7 @@ define filechk_gen-asm-offsets
          echo ""; )
 endef
 
-include/generated/user_constants.h: $(ARCH_DIR)/sys-$(HEADER_ARCH)/user-offsets.s
+include/generated/user_constants.h: $(HOST_DIR)/um/user-offsets.s
        $(call filechk,gen-asm-offsets)
 
-export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH
+export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS DEV_NULL_PATH
index 7879e76e998f6a34fdfe9b5f123f7c00c5315463..015d000576632d81de844ba12113d407ccd61d5a 100644 (file)
@@ -5,7 +5,7 @@
 
 obj-y = aio.o execvp.o file.o helper.o irq.o main.o mem.o process.o \
        registers.o sigio.o signal.o start_up.o time.o tty.o \
-       umid.o tls.o user_syms.o util.o drivers/ sys-$(HEADER_ARCH)/ skas/
+       umid.o tls.o user_syms.o util.o drivers/ skas/
 
 obj-$(CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA) += elf_aux.o
 
index 3a7efb017a739812b86a7bbec99bd3306f1a5df3..2eb2843b06343c909b6138511722ea2d7a74cd52 100644 (file)
@@ -25,8 +25,3 @@ $(UNPROFILE_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
 define unprofile
        $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
 endef
-
-ifdef subarch-obj-y
-obj-y += subarch.o
-subarch-y = $(addprefix ../../$(HEADER_ARCH)/,$(subarch-obj-y))
-endif
similarity index 97%
rename from arch/um/Makefile-x86
rename to arch/x86/Makefile.um
index 68fbd1b7c9f2b7da37047b5a2cf9706b7c43fd6d..36ddec6a41c9fd6690fec0acd45fe10c8a6dc73c 100644 (file)
@@ -1,4 +1,4 @@
-core-y += arch/um/sys-x86/ arch/x86/crypto/
+core-y += arch/x86/crypto/
 
 ifeq ($(CONFIG_X86_32),y)
 START := 0x8048000
similarity index 100%
rename from arch/um/Kconfig.x86
rename to arch/x86/um/Kconfig
similarity index 61%
rename from arch/um/sys-x86/Makefile
rename to arch/x86/um/Makefile
index 81ab3484a430a740994f9eb8ba4b4fdb92854c3b..df419896693f240383b56f835982370560d84fde 100644 (file)
@@ -11,28 +11,28 @@ endif
 obj-y = bug.o bugs_$(BITS).o delay_$(BITS).o fault.o ksyms.o ldt.o \
        ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal_$(BITS).o \
        stub_$(BITS).o stub_segv.o syscalls_$(BITS).o \
-       sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o mem_$(BITS).o
+       sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
+       mem_$(BITS).o subarch.o os-$(OS)/
 
 ifeq ($(CONFIG_X86_32),y)
 
 obj-y += checksum_32.o
 obj-$(CONFIG_BINFMT_ELF) += elfcore.o
 
-subarch-obj-y = lib/string_32.o lib/atomic64_32.o lib/atomic64_cx8_32.o
-subarch-obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += lib/rwsem.o
-subarch-obj-$(CONFIG_HIGHMEM) += mm/highmem_32.o
-subarch-obj-$(CONFIG_MODULES) += kernel/module.o
+subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
+subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
+subarch-$(CONFIG_HIGHMEM) += ../mm/highmem_32.o
 
 else
 
 obj-y += vdso/
 
-subarch-obj-y = lib/csum-partial_64.o lib/memcpy_64.o lib/thunk_64.o \
-               lib/rwsem.o
+subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/thunk_64.o \
+               ../lib/rwsem.o
 
 endif
 
-subarch-obj-$(CONFIG_MODULES) += kernel/module.o
+subarch-$(CONFIG_MODULES) += ../kernel/module.o
 
 USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
 
similarity index 100%
rename from arch/um/sys-x86/bug.c
rename to arch/x86/um/bug.c
similarity index 100%
rename from arch/um/sys-x86/fault.c
rename to arch/x86/um/fault.c
similarity index 100%
rename from arch/um/sys-x86/ksyms.c
rename to arch/x86/um/ksyms.c
similarity index 100%
rename from arch/um/sys-x86/ldt.c
rename to arch/x86/um/ldt.c
similarity index 70%
rename from arch/um/sys-x86/vdso/vdso.S
rename to arch/x86/um/vdso/vdso.S
index 03b053283f8669b677d13103f04b594c9beb62e6..1cb468adacbbd50d02ae13c69191aa789337aaf0 100644 (file)
@@ -4,7 +4,7 @@ __INITDATA
 
        .globl vdso_start, vdso_end
 vdso_start:
-       .incbin "arch/um/sys-x86/vdso/vdso.so"
+       .incbin "arch/x86/um/vdso/vdso.so"
 vdso_end:
 
 __FINIT