Commit 5490a4dd authored by Ben Collins's avatar Ben Collins Committed by David S. Miller

[SPARC64]: Add image target.

parent 20556443
...@@ -71,8 +71,10 @@ libs-y += arch/sparc64/prom/ arch/sparc64/lib/ ...@@ -71,8 +71,10 @@ libs-y += arch/sparc64/prom/ arch/sparc64/lib/
# FIXME: is drivers- right? # FIXME: is drivers- right?
drivers-$(CONFIG_OPROFILE) += arch/sparc64/oprofile/ drivers-$(CONFIG_OPROFILE) += arch/sparc64/oprofile/
tftpboot.img vmlinux.aout: makeboot = $(Q)$(MAKE) -f scripts/Makefile.build obj=arch/$(ARCH)/boot $(1)
$(Q)$(MAKE) $(build)=arch/sparc64/boot arch/sparc64/boot/$@
image tftpboot.img vmlinux.aout: vmlinux
$(call makeboot,arch/sparc64/boot/$@)
define archhelp define archhelp
echo '* vmlinux - Standard sparc64 kernel' echo '* vmlinux - Standard sparc64 kernel'
......
...@@ -14,13 +14,21 @@ quiet_cmd_elftoaout = ELT2AOUT $@ ...@@ -14,13 +14,21 @@ quiet_cmd_elftoaout = ELT2AOUT $@
cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@ cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
quiet_cmd_piggy = PIGGY $@ quiet_cmd_piggy = PIGGY $@
cmd_piggy = $(obj)/piggyback $@ System.map $(ROOT_IMG) cmd_piggy = $(obj)/piggyback $@ System.map $(ROOT_IMG)
quiet_cmd_strip = STRIP $@
cmd_strip = $(STRIP) -R .comment -R .note vmlinux -o $@
$(obj)/tftpboot.img: $(obj)/piggyback System.map vmlinux $(ROOT_IMG) FORCE
# Actual linking
$(obj)/image: FORCE
$(call if_changed,strip)
@echo ' kernel: $@ is ready'
$(obj)/tftpboot.img: $(obj)/piggyback System.map $(ROOT_IMG) FORCE
$(call if_changed,elftoaout) $(call if_changed,elftoaout)
$(call if_changed,piggy) $(call if_changed,piggy)
@echo ' kernel: $@ is ready' @echo ' kernel: $@ is ready'
$(obj)/vmlinux.aout: vmlinux FORCE $(obj)/vmlinux.aout: FORCE
$(call if_changed,elftoaout) $(call if_changed,elftoaout)
@echo ' kernel: $@ is ready' @echo ' kernel: $@ is ready'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment