aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-05 04:18:40 -0400
committerMichal Marek <mmarek@suse.cz>2012-05-05 15:19:33 -0400
commit95698570510b7be9ab1542a4a908242c05a9b0ed (patch)
tree800f6e5bf8c45eb6f1ee6cfda4af4d4d62543dba /Makefile
parent275eb135cfa2980d4ed1ec24746e05ca42f8418b (diff)
kbuild: refactor final link of sparc32
sparc32 uses an additional final link to support btfix. Introduce a new set of exported variables in the top-level Makefile to make the extra linking step simpler. sparc32 has hardcoded knowledge of kallsyms support. This fix include support for EXTRA_KALLSYM_PASS=1. The ugly part is that it is hardcoded in the arch/sparc/boot Makefile. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 06aff741e91a..7ea0c07779bd 100644
--- a/Makefile
+++ b/Makefile
@@ -723,6 +723,11 @@ libs-y1 := $(patsubst %/, %/lib.a, $(libs-y))
723libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y)) 723libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y))
724libs-y := $(libs-y1) $(libs-y2) 724libs-y := $(libs-y1) $(libs-y2)
725 725
726# externally visible symbols
727export KBUILD_VMLINUX_INIT := $(head-y) $(init-y)
728export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
729export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds
730
726# Build vmlinux 731# Build vmlinux
727# --------------------------------------------------------------------------- 732# ---------------------------------------------------------------------------
728# vmlinux is built from the objects selected by $(vmlinux-init) and 733# vmlinux is built from the objects selected by $(vmlinux-init) and