Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] uml: eliminate symlinks to host arch

kills symlinks in arch/um/sys-*

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Al Viro and committed by
Linus Torvalds
de2fe5e0 f4c57a78

+19 -54
+1 -1
arch/um/Makefile-x86_64
··· 1 1 # Copyright 2003 - 2004 Pathscale, Inc 2 2 # Released under the GPL 3 3 4 - libs-y += arch/um/sys-x86_64/ 4 + core-y += arch/um/sys-x86_64/ 5 5 START := 0x60000000 6 6 7 7 #We #undef __x86_64__ for kernelspace, not for userspace where
+4 -22
arch/um/scripts/Makefile.rules
··· 20 20 $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1))) 21 21 endef 22 22 23 - 24 - # cmd_make_link checks to see if the $(foo-dir) variable starts with a /. If 25 - # so, it's considered to be a path relative to $(srcdir) rather than 26 - # $(srcdir)/arch/$(SUBARCH). This is because x86_64 wants to get ldt.c from 27 - # arch/um/sys-i386 rather than arch/i386 like the other borrowed files. So, 28 - # it sets $(ldt.c-dir) to /arch/um/sys-i386. 29 - quiet_cmd_make_link = SYMLINK $@ 30 - cmd_make_link = rm -f $@; ln -sf $(srctree)$(if $(filter-out /%,$($(notdir $@)-dir)),/arch/$(SUBARCH))/$($(notdir $@)-dir)/$(notdir $@) $@ 31 - 32 - # this needs to be before the foreach, because targets does not accept 33 - # complete paths like $(obj)/$(f). To make sure this works, use a := assignment 34 - # or we will get $(obj)/$(f) in the "targets" value. 35 - # Also, this forces you to use the := syntax when assigning to targets. 36 - # Otherwise the line below will cause an infinite loop (if you don't know why, 37 - # just do it). 38 - 39 - targets := $(targets) $(SYMLINKS) 40 - 41 - SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$(f)) 42 - 43 - $(SYMLINKS): FORCE 44 - $(call if_changed,make_link) 23 + ifdef subarch-obj-y 24 + obj-y += subarch.o 25 + subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y)) 26 + endif
+5 -12
arch/um/sys-i386/Makefile
··· 1 - obj-y := bitops.o bugs.o checksum.o delay.o fault.o ksyms.o ldt.o ptrace.o \ 2 - ptrace_user.o semaphore.o signal.o sigcontext.o syscalls.o sysrq.o \ 3 - sys_call_table.o 1 + obj-y = bugs.o checksum.o delay.o fault.o ksyms.o ldt.o ptrace.o \ 2 + ptrace_user.o signal.o sigcontext.o syscalls.o sysrq.o sys_call_table.o 4 3 5 4 obj-$(CONFIG_MODE_SKAS) += stub.o stub_segv.o 6 5 7 - obj-$(CONFIG_HIGHMEM) += highmem.o 8 - obj-$(CONFIG_MODULES) += module.o 6 + subarch-obj-y = lib/bitops.o kernel/semaphore.o 7 + subarch-obj-$(CONFIG_HIGHMEM) += mm/highmem.o 8 + subarch-obj-$(CONFIG_MODULES) += kernel/module.o 9 9 10 10 USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o stub_segv.o 11 11 12 - SYMLINKS = bitops.c semaphore.c highmem.c module.c 13 - 14 12 include arch/um/scripts/Makefile.rules 15 - 16 - bitops.c-dir = lib 17 - semaphore.c-dir = kernel 18 - highmem.c-dir = mm 19 - module.c-dir = kernel 20 13 21 14 $(obj)/stub_segv.o : _c_flags = $(call unprofile,$(CFLAGS)) 22 15
+9 -19
arch/um/sys-x86_64/Makefile
··· 4 4 # Licensed under the GPL 5 5 # 6 6 7 - #XXX: why into lib-y? 8 - lib-y = bitops.o bugs.o csum-partial.o delay.o fault.o ldt.o mem.o memcpy.o \ 9 - ptrace.o ptrace_user.o sigcontext.o signal.o syscalls.o \ 10 - syscall_table.o sysrq.o thunk.o 11 - lib-$(CONFIG_MODE_SKAS) += stub.o stub_segv.o 7 + obj-y = bugs.o delay.o fault.o ldt.o mem.o ptrace.o ptrace_user.o \ 8 + sigcontext.o signal.o syscalls.o syscall_table.o sysrq.o ksyms.o 12 9 13 - obj-y := ksyms.o 14 - obj-$(CONFIG_MODULES) += module.o um_module.o 10 + obj-$(CONFIG_MODE_SKAS) += stub.o stub_segv.o 11 + obj-$(CONFIG_MODULES) += um_module.o 12 + 13 + subarch-obj-y = lib/bitops.o lib/csum-partial.o lib/memcpy.o lib/thunk.o 14 + subarch-obj-$(CONFIG_MODULES) += kernel/module.o 15 + 16 + ldt-y = ../sys-i386/ldt.o 15 17 16 18 USER_OBJS := ptrace_user.o sigcontext.o stub_segv.o 17 19 18 - SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c ldt.c memcpy.S \ 19 - thunk.S module.c 20 - 21 20 include arch/um/scripts/Makefile.rules 22 - 23 - bitops.c-dir = lib 24 - csum-copy.S-dir = lib 25 - csum-partial.c-dir = lib 26 - csum-wrappers.c-dir = lib 27 - ldt.c-dir = /arch/um/sys-i386 28 - memcpy.S-dir = lib 29 - thunk.S-dir = lib 30 - module.c-dir = kernel 31 21 32 22 $(obj)/stub_segv.o: _c_flags = $(call unprofile,$(CFLAGS)) 33 23