aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-02-13 16:50:24 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-02-14 17:33:25 -0500
commitcf87dcd14064e7660f2b11b35b9e4949e9812fd2 (patch)
tree82cfce84caa3ddd78c0722e7e81f5adf35e16e1e /Makefile
parente06b8b98da071f7dd78fb7822991694288047df0 (diff)
kbuild: fix building vmlinux.o
Ingo Molnar wrote: > > i've got a build log from a weird build error below: > > LD init/built-in.o > distcc[12023] ERROR: compile (null) on localhost failed > make: *** [vmlinux.o] Error 1 > make: *** Waiting for unfinished jobs.... > LD .tmp_vmlinux1 > Building vmlinux.o were moved up in the dependency chain so we started to build it before the kallsym stuff. This was done to let modpost report section mismatch bugs even when the final link failed. Originally I had expected the dependency of $(kallsyms.o) to cover this but it turns out that we need to be even more explicit. Fix this by adding a conditional dependency on firat target used in the kallsyms serie of builds. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Roland McGrath <roland@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d73865188372..0d585c09d60c 100644
--- a/Makefile
+++ b/Makefile
@@ -811,7 +811,9 @@ endif
811 $(Q)rm -f .old_version 811 $(Q)rm -f .old_version
812 812
813# build vmlinux.o first to catch section mismatch errors early 813# build vmlinux.o first to catch section mismatch errors early
814$(kallsyms.o): vmlinux.o 814ifdef CONFIG_KALLSYMS
815.tmp_vmlinux1: vmlinux.o
816endif
815vmlinux.o: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) FORCE 817vmlinux.o: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) FORCE
816 $(call if_changed_rule,vmlinux-modpost) 818 $(call if_changed_rule,vmlinux-modpost)
817 819