mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
[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>
This commit is contained in:
parent
f4c57a78e2
commit
de2fe5e07d
@ -1,7 +1,7 @@
|
||||
# Copyright 2003 - 2004 Pathscale, Inc
|
||||
# Released under the GPL
|
||||
|
||||
libs-y += arch/um/sys-x86_64/
|
||||
core-y += arch/um/sys-x86_64/
|
||||
START := 0x60000000
|
||||
|
||||
#We #undef __x86_64__ for kernelspace, not for userspace where
|
||||
|
@ -20,25 +20,7 @@ define unprofile
|
||||
$(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
|
||||
endef
|
||||
|
||||
|
||||
# cmd_make_link checks to see if the $(foo-dir) variable starts with a /. If
|
||||
# so, it's considered to be a path relative to $(srcdir) rather than
|
||||
# $(srcdir)/arch/$(SUBARCH). This is because x86_64 wants to get ldt.c from
|
||||
# arch/um/sys-i386 rather than arch/i386 like the other borrowed files. So,
|
||||
# it sets $(ldt.c-dir) to /arch/um/sys-i386.
|
||||
quiet_cmd_make_link = SYMLINK $@
|
||||
cmd_make_link = rm -f $@; ln -sf $(srctree)$(if $(filter-out /%,$($(notdir $@)-dir)),/arch/$(SUBARCH))/$($(notdir $@)-dir)/$(notdir $@) $@
|
||||
|
||||
# this needs to be before the foreach, because targets does not accept
|
||||
# complete paths like $(obj)/$(f). To make sure this works, use a := assignment
|
||||
# or we will get $(obj)/$(f) in the "targets" value.
|
||||
# Also, this forces you to use the := syntax when assigning to targets.
|
||||
# Otherwise the line below will cause an infinite loop (if you don't know why,
|
||||
# just do it).
|
||||
|
||||
targets := $(targets) $(SYMLINKS)
|
||||
|
||||
SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$(f))
|
||||
|
||||
$(SYMLINKS): FORCE
|
||||
$(call if_changed,make_link)
|
||||
ifdef subarch-obj-y
|
||||
obj-y += subarch.o
|
||||
subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y))
|
||||
endif
|
||||
|
@ -1,23 +1,16 @@
|
||||
obj-y := bitops.o bugs.o checksum.o delay.o fault.o ksyms.o ldt.o ptrace.o \
|
||||
ptrace_user.o semaphore.o signal.o sigcontext.o syscalls.o sysrq.o \
|
||||
sys_call_table.o
|
||||
obj-y = bugs.o checksum.o delay.o fault.o ksyms.o ldt.o ptrace.o \
|
||||
ptrace_user.o signal.o sigcontext.o syscalls.o sysrq.o sys_call_table.o
|
||||
|
||||
obj-$(CONFIG_MODE_SKAS) += stub.o stub_segv.o
|
||||
|
||||
obj-$(CONFIG_HIGHMEM) += highmem.o
|
||||
obj-$(CONFIG_MODULES) += module.o
|
||||
subarch-obj-y = lib/bitops.o kernel/semaphore.o
|
||||
subarch-obj-$(CONFIG_HIGHMEM) += mm/highmem.o
|
||||
subarch-obj-$(CONFIG_MODULES) += kernel/module.o
|
||||
|
||||
USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o stub_segv.o
|
||||
|
||||
SYMLINKS = bitops.c semaphore.c highmem.c module.c
|
||||
|
||||
include arch/um/scripts/Makefile.rules
|
||||
|
||||
bitops.c-dir = lib
|
||||
semaphore.c-dir = kernel
|
||||
highmem.c-dir = mm
|
||||
module.c-dir = kernel
|
||||
|
||||
$(obj)/stub_segv.o : _c_flags = $(call unprofile,$(CFLAGS))
|
||||
|
||||
include arch/um/scripts/Makefile.unmap
|
||||
|
@ -4,31 +4,21 @@
|
||||
# Licensed under the GPL
|
||||
#
|
||||
|
||||
#XXX: why into lib-y?
|
||||
lib-y = bitops.o bugs.o csum-partial.o delay.o fault.o ldt.o mem.o memcpy.o \
|
||||
ptrace.o ptrace_user.o sigcontext.o signal.o syscalls.o \
|
||||
syscall_table.o sysrq.o thunk.o
|
||||
lib-$(CONFIG_MODE_SKAS) += stub.o stub_segv.o
|
||||
obj-y = bugs.o delay.o fault.o ldt.o mem.o ptrace.o ptrace_user.o \
|
||||
sigcontext.o signal.o syscalls.o syscall_table.o sysrq.o ksyms.o
|
||||
|
||||
obj-y := ksyms.o
|
||||
obj-$(CONFIG_MODULES) += module.o um_module.o
|
||||
obj-$(CONFIG_MODE_SKAS) += stub.o stub_segv.o
|
||||
obj-$(CONFIG_MODULES) += um_module.o
|
||||
|
||||
subarch-obj-y = lib/bitops.o lib/csum-partial.o lib/memcpy.o lib/thunk.o
|
||||
subarch-obj-$(CONFIG_MODULES) += kernel/module.o
|
||||
|
||||
ldt-y = ../sys-i386/ldt.o
|
||||
|
||||
USER_OBJS := ptrace_user.o sigcontext.o stub_segv.o
|
||||
|
||||
SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c ldt.c memcpy.S \
|
||||
thunk.S module.c
|
||||
|
||||
include arch/um/scripts/Makefile.rules
|
||||
|
||||
bitops.c-dir = lib
|
||||
csum-copy.S-dir = lib
|
||||
csum-partial.c-dir = lib
|
||||
csum-wrappers.c-dir = lib
|
||||
ldt.c-dir = /arch/um/sys-i386
|
||||
memcpy.S-dir = lib
|
||||
thunk.S-dir = lib
|
||||
module.c-dir = kernel
|
||||
|
||||
$(obj)/stub_segv.o: _c_flags = $(call unprofile,$(CFLAGS))
|
||||
|
||||
include arch/um/scripts/Makefile.unmap
|
||||
|
Loading…
Reference in New Issue
Block a user