Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308510
b: refs/heads/master
c: 9569857
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and Michal Marek committed May 5, 2012
1 parent 356c5b7 commit eb357a4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 275eb135cfa2980d4ed1ec24746e05ca42f8418b
refs/heads/master: 95698570510b7be9ab1542a4a908242c05a9b0ed
5 changes: 5 additions & 0 deletions trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,11 @@ libs-y1 := $(patsubst %/, %/lib.a, $(libs-y))
libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y))
libs-y := $(libs-y1) $(libs-y2)

# externally visible symbols
export KBUILD_VMLINUX_INIT := $(head-y) $(init-y)
export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds

# Build vmlinux
# ---------------------------------------------------------------------------
# vmlinux is built from the objects selected by $(vmlinux-init) and
Expand Down
11 changes: 0 additions & 11 deletions trunk/arch/sparc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ libs-y += arch/sparc/lib/

drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/

# Export what is needed by arch/sparc/boot/Makefile
export VMLINUX_INIT VMLINUX_MAIN
VMLINUX_INIT := $(head-y) $(init-y)
VMLINUX_MAIN := $(core-y) kernel/ mm/ fs/ ipc/ security/ crypto/ block/
VMLINUX_MAIN += $(patsubst %/, %/lib.a, $(libs-y)) $(libs-y)
VMLINUX_MAIN += $(drivers-y) $(net-y)

ifdef CONFIG_KALLSYMS
export kallsyms.o := .tmp_kallsyms2.o
endif

boot := arch/sparc/boot

# Default target
Expand Down
14 changes: 9 additions & 5 deletions trunk/arch/sparc/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ define rule_image
echo 'cmd_$@ := $(cmd_image)' > $(@D)/.$(@F).cmd
endef

BTOBJS := $(patsubst %/, %/built-in.o, $(VMLINUX_INIT))
BTLIBS := $(patsubst %/, %/built-in.o, $(VMLINUX_MAIN))
LDFLAGS_image := -T arch/sparc/kernel/vmlinux.lds $(BTOBJS) \
--start-group $(BTLIBS) --end-group \
$(kallsyms.o) $(obj)/btfix.o
# Support for kallsyms
kallsyms-$(CONFIG_KALLSYMS) := .tmp_kallsyms2.o
ifdef KALLSYMS_EXTRA_PASS
kallsyms-$(CONFIG_KALLSYMS) := .tmp_kallsyms3.o
endif

LDFLAGS_image := -T $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) \
--start-group $(KBUILD_VMLINUX_MAIN) --end-group \
$(kallsyms-y) $(obj)/btfix.o

# Link the final image including btfixup'ed symbols.
# This is a replacement for the link done in the top-level Makefile.
Expand Down

0 comments on commit eb357a4

Please sign in to comment.