diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-03 06:14:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-04 12:17:21 -0500 |
commit | a8c601ca21e790f6a9d996bb0bf31f7496eb9509 (patch) | |
tree | 3a14a41ec3fc4b57ec9d195f2a4365a149c395bc /arch/sparc/boot/Makefile | |
parent | a88b5ba8bd8ac18aad65ee6c6a254e2e74876db3 (diff) |
sparc,sparc64: unify boot/
Simple unification:
o renamed piggyback to *_32.c/*_64.c
o copied content of Makefile from sparc64 to sparc and guard it
o updated sparc/boot/.gitignore
o deleted remaining files in sparc64/boot
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/boot/Makefile')
-rw-r--r-- | arch/sparc/boot/Makefile | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index 06b653df820d..96041a8d39e8 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile | |||
@@ -6,14 +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 btfixupprep | 9 | hostprogs-y := piggyback_32 piggyback_64 btfixupprep |
10 | targets := tftpboot.img btfix.o btfix.S image zImage | 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 | |||
16 | ifeq ($(CONFIG_SPARC32),y) | ||
15 | quiet_cmd_piggy = PIGGY $@ | 17 | quiet_cmd_piggy = PIGGY $@ |
16 | cmd_piggy = $(obj)/piggyback $@ $(obj)/System.map $(ROOT_IMG) | 18 | cmd_piggy = $(obj)/piggyback_32 $@ $(obj)/System.map $(ROOT_IMG) |
17 | quiet_cmd_btfix = BTFIX $@ | 19 | quiet_cmd_btfix = BTFIX $@ |
18 | cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@ | 20 | cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@ |
19 | quiet_cmd_sysmap = SYSMAP $(obj)/System.map | 21 | quiet_cmd_sysmap = SYSMAP $(obj)/System.map |
@@ -62,3 +64,28 @@ $(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE | |||
62 | 64 | ||
63 | $(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE | 65 | $(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE |
64 | $(call if_changed,btfix) | 66 | $(call if_changed,btfix) |
67 | |||
68 | endif | ||
69 | |||
70 | ifeq ($(CONFIG_SPARC64),y) | ||
71 | quiet_cmd_piggy = PIGGY $@ | ||
72 | cmd_piggy = $(obj)/piggyback_64 $@ System.map $(ROOT_IMG) | ||
73 | quiet_cmd_strip = STRIP $@ | ||
74 | cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@ | ||
75 | |||
76 | |||
77 | # Actual linking | ||
78 | $(obj)/image: vmlinux FORCE | ||
79 | $(call if_changed,strip) | ||
80 | @echo ' kernel: $@ is ready' | ||
81 | |||
82 | $(obj)/tftpboot.img: vmlinux $(obj)/piggyback_64 System.map $(ROOT_IMG) FORCE | ||
83 | $(call if_changed,elftoaout) | ||
84 | $(call if_changed,piggy) | ||
85 | @echo ' kernel: $@ is ready' | ||
86 | |||
87 | $(obj)/vmlinux.aout: vmlinux FORCE | ||
88 | $(call if_changed,elftoaout) | ||
89 | @echo ' kernel: $@ is ready' | ||
90 | endif | ||
91 | |||