diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-05-05 19:15:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:33 -0400 |
commit | 776cfebb430c7b22c208b1b17add97f354d97cab (patch) | |
tree | a4029d17947423ff8cdf12757e3434eb31e0dcba /arch/um/sys-x86_64/Makefile | |
parent | 0c28130b5c9e8f0b153436d3dae39482e5a70af1 (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/Makefile')
-rw-r--r-- | arch/um/sys-x86_64/Makefile | 11 |
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 | |||
19 | SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \ | 19 | SYMLINKS = 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. | ||
24 | clean-files := $(SYMLINKS) | ||
25 | |||
26 | targets += $(SYMLINKS) | ||
27 | |||
28 | SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f) | ||
29 | |||
30 | bitops.c-dir = lib | 22 | bitops.c-dir = lib |
31 | csum-copy.S-dir = lib | 23 | csum-copy.S-dir = lib |
32 | csum-partial.c-dir = lib | 24 | csum-partial.c-dir = lib |
@@ -36,7 +28,4 @@ semaphore.c-dir = kernel | |||
36 | thunk.S-dir = lib | 28 | thunk.S-dir = lib |
37 | module.c-dir = kernel | 29 | module.c-dir = kernel |
38 | 30 | ||
39 | $(SYMLINKS): FORCE | ||
40 | $(call if_changed,make_link) | ||
41 | |||
42 | CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial | 31 | CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial |