aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-05-05 19:15:18 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-05 19:36:33 -0400
commit776cfebb430c7b22c208b1b17add97f354d97cab (patch)
treea4029d17947423ff8cdf12757e3434eb31e0dcba /arch/um/sys-x86_64
parent0c28130b5c9e8f0b153436d3dae39482e5a70af1 (diff)
[PATCH] uml kbuild: avoid useless rebuilds
- Fix some problems with usage of $(targets) (sometimes missing, sometimes used badly) that trigger partial rebuilds when doing a rebuild. - At that purpose, also factor out some common code for symlinks creation. - Fix a x86-64 build warning, caused by -L/usr/lib, which is anyway useless, and invalid in the x86-64 case. Tested on x86_64 and x86. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/sys-x86_64')
-rw-r--r--arch/um/sys-x86_64/Makefile11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/um/sys-x86_64/Makefile b/arch/um/sys-x86_64/Makefile
index e60c9da8fb48..d6094281aa53 100644
--- a/arch/um/sys-x86_64/Makefile
+++ b/arch/um/sys-x86_64/Makefile
@@ -19,14 +19,6 @@ include arch/um/scripts/Makefile.rules
19SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \ 19SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \
20 semaphore.c thunk.S module.c 20 semaphore.c thunk.S module.c
21 21
22# this needs to be before the foreach, because clean-files does not accept
23# complete paths like $(src)/$f.
24clean-files := $(SYMLINKS)
25
26targets += $(SYMLINKS)
27
28SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f)
29
30bitops.c-dir = lib 22bitops.c-dir = lib
31csum-copy.S-dir = lib 23csum-copy.S-dir = lib
32csum-partial.c-dir = lib 24csum-partial.c-dir = lib
@@ -36,7 +28,4 @@ semaphore.c-dir = kernel
36thunk.S-dir = lib 28thunk.S-dir = lib
37module.c-dir = kernel 29module.c-dir = kernel
38 30
39$(SYMLINKS): FORCE
40 $(call if_changed,make_link)
41
42CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial 31CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial