diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-03 02:15:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-04 12:17:13 -0500 |
commit | db5ea21a14b7c69bf495a741ae37ba15fb9eabd1 (patch) | |
tree | be4a80a89b595f656c9b3d787a3e9e755cd9ec35 /arch/sparc/boot | |
parent | b5db854a91d93c46c6904506ef73ce0d0b074b44 (diff) |
sparc: refactor Makefile
The btfixup step needs knowledge of all the .o files,
but there is no need to pass them in independent variables.
Simplify it to use only two variables.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/boot')
-rw-r--r-- | arch/sparc/boot/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index 3e77a9f52248..4fd562034a74 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile | |||
@@ -37,8 +37,8 @@ define rule_image | |||
37 | echo 'cmd_$@ := $(cmd_image)' > $(@D)/.$(@F).cmd | 37 | echo 'cmd_$@ := $(cmd_image)' > $(@D)/.$(@F).cmd |
38 | endef | 38 | endef |
39 | 39 | ||
40 | BTOBJS := $(HEAD_Y) $(INIT_Y) | 40 | BTOBJS := $(patsubst %/, %/built-in.o, $(VMLINUX_INIT)) |
41 | BTLIBS := $(CORE_Y) $(LIBS_Y) $(DRIVERS_Y) $(NET_Y) | 41 | BTLIBS := $(patsubst %/, %/built-in.o, $(VMLINUX_MAIN)) |
42 | LDFLAGS_image := -T arch/sparc/kernel/vmlinux.lds $(BTOBJS) \ | 42 | LDFLAGS_image := -T arch/sparc/kernel/vmlinux.lds $(BTOBJS) \ |
43 | --start-group $(BTLIBS) --end-group \ | 43 | --start-group $(BTLIBS) --end-group \ |
44 | $(kallsyms.o) $(obj)/btfix.o | 44 | $(kallsyms.o) $(obj)/btfix.o |