diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-04 06:39:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-04 22:25:06 -0500 |
commit | 56818a6f9105ac016ecf5907f7cb63bcdab639fe (patch) | |
tree | 8e3eacf779b141be0e4fefbe7cd433457031eb02 /arch/sparc/boot | |
parent | 1075c4ef707ca83afbeb0950094436eb0245ec86 (diff) |
sparc: rename piggyback_32 to piggyback
Now that we use the same piggyback for 32 and 64 bit
we can drop the _32 suffix.
Include some trivial unification in the Makefile
now that 32 and 64 bit can share the same piggyback command.
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 | 20 | ||||
-rw-r--r-- | arch/sparc/boot/piggyback.c (renamed from arch/sparc/boot/piggyback_32.c) | 0 |
2 files changed, 6 insertions, 14 deletions
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index 06a79a2018de..f9d3bf96806e 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile | |||
@@ -6,16 +6,16 @@ | |||
6 | ROOT_IMG := /usr/src/root.img | 6 | ROOT_IMG := /usr/src/root.img |
7 | ELFTOAOUT := elftoaout | 7 | ELFTOAOUT := elftoaout |
8 | 8 | ||
9 | hostprogs-y := piggyback_32 btfixupprep | 9 | hostprogs-y := piggyback btfixupprep |
10 | targets := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout | 10 | targets := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout |
11 | clean-files := System.map | 11 | clean-files := System.map |
12 | 12 | ||
13 | quiet_cmd_elftoaout = ELFTOAOUT $@ | 13 | quiet_cmd_elftoaout = ELFTOAOUT $@ |
14 | cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@ | 14 | cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@ |
15 | quiet_cmd_piggy = PIGGY $@ | ||
16 | cmd_piggy = $(obj)/piggyback $(BITS) $@ System.map $(ROOT_IMG) | ||
15 | 17 | ||
16 | ifeq ($(CONFIG_SPARC32),y) | 18 | ifeq ($(CONFIG_SPARC32),y) |
17 | quiet_cmd_piggy = PIGGY $@ | ||
18 | cmd_piggy = $(obj)/piggyback_32 $(BITS) $@ System.map $(ROOT_IMG) | ||
19 | quiet_cmd_btfix = BTFIX $@ | 19 | quiet_cmd_btfix = BTFIX $@ |
20 | cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@ | 20 | cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@ |
21 | quiet_cmd_sysmap = SYSMAP $(obj)/System.map | 21 | quiet_cmd_sysmap = SYSMAP $(obj)/System.map |
@@ -58,18 +58,12 @@ $(obj)/image: $(obj)/btfix.o FORCE | |||
58 | $(obj)/zImage: $(obj)/image | 58 | $(obj)/zImage: $(obj)/image |
59 | $(call if_changed,strip) | 59 | $(call if_changed,strip) |
60 | 60 | ||
61 | $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback_32 System.map $(ROOT_IMG) FORCE | ||
62 | $(call if_changed,elftoaout) | ||
63 | $(call if_changed,piggy) | ||
64 | |||
65 | $(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE | 61 | $(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE |
66 | $(call if_changed,btfix) | 62 | $(call if_changed,btfix) |
67 | 63 | ||
68 | endif | 64 | endif |
69 | 65 | ||
70 | ifeq ($(CONFIG_SPARC64),y) | 66 | ifeq ($(CONFIG_SPARC64),y) |
71 | quiet_cmd_piggy = PIGGY $@ | ||
72 | cmd_piggy = $(obj)/piggyback_32 $(BITS) $@ System.map $(ROOT_IMG) | ||
73 | quiet_cmd_strip = STRIP $@ | 67 | quiet_cmd_strip = STRIP $@ |
74 | cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@ | 68 | cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@ |
75 | 69 | ||
@@ -82,13 +76,11 @@ $(obj)/image: vmlinux FORCE | |||
82 | $(obj)/zImage: $(obj)/image | 76 | $(obj)/zImage: $(obj)/image |
83 | $(call if_changed,gzip) | 77 | $(call if_changed,gzip) |
84 | 78 | ||
85 | $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback_32 System.map $(ROOT_IMG) FORCE | ||
86 | $(call if_changed,elftoaout) | ||
87 | $(call if_changed,piggy) | ||
88 | @echo ' kernel: $@ is ready' | ||
89 | |||
90 | $(obj)/vmlinux.aout: vmlinux FORCE | 79 | $(obj)/vmlinux.aout: vmlinux FORCE |
91 | $(call if_changed,elftoaout) | 80 | $(call if_changed,elftoaout) |
92 | @echo ' kernel: $@ is ready' | 81 | @echo ' kernel: $@ is ready' |
93 | endif | 82 | endif |
94 | 83 | ||
84 | $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE | ||
85 | $(call if_changed,elftoaout) | ||
86 | $(call if_changed,piggy) | ||
diff --git a/arch/sparc/boot/piggyback_32.c b/arch/sparc/boot/piggyback.c index d56e9de85d27..d56e9de85d27 100644 --- a/arch/sparc/boot/piggyback_32.c +++ b/arch/sparc/boot/piggyback.c | |||