sparc: unify strip command in boot/Makefile
Include an additional "Kernel is ready" print for zImage Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
56818a6f91
commit
9202db2202
|
@ -14,6 +14,8 @@ quiet_cmd_elftoaout = ELFTOAOUT $@
|
||||||
cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@
|
cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@
|
||||||
quiet_cmd_piggy = PIGGY $@
|
quiet_cmd_piggy = PIGGY $@
|
||||||
cmd_piggy = $(obj)/piggyback $(BITS) $@ System.map $(ROOT_IMG)
|
cmd_piggy = $(obj)/piggyback $(BITS) $@ System.map $(ROOT_IMG)
|
||||||
|
quiet_cmd_strip = STRIP $@
|
||||||
|
cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start $< -o $@
|
||||||
|
|
||||||
ifeq ($(CONFIG_SPARC32),y)
|
ifeq ($(CONFIG_SPARC32),y)
|
||||||
quiet_cmd_btfix = BTFIX $@
|
quiet_cmd_btfix = BTFIX $@
|
||||||
|
@ -22,9 +24,6 @@ quiet_cmd_sysmap = SYSMAP $(obj)/System.map
|
||||||
cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap
|
cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap
|
||||||
quiet_cmd_image = LD $@
|
quiet_cmd_image = LD $@
|
||||||
cmd_image = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) -o $@
|
cmd_image = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) -o $@
|
||||||
quiet_cmd_strip = STRIP $@
|
|
||||||
cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start $(obj)/image -o $@
|
|
||||||
|
|
||||||
|
|
||||||
define rule_image
|
define rule_image
|
||||||
$(if $($(quiet)cmd_image), \
|
$(if $($(quiet)cmd_image), \
|
||||||
|
@ -57,6 +56,7 @@ $(obj)/image: $(obj)/btfix.o FORCE
|
||||||
|
|
||||||
$(obj)/zImage: $(obj)/image
|
$(obj)/zImage: $(obj)/image
|
||||||
$(call if_changed,strip)
|
$(call if_changed,strip)
|
||||||
|
@echo ' kernel: $@ is ready'
|
||||||
|
|
||||||
$(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE
|
$(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE
|
||||||
$(call if_changed,btfix)
|
$(call if_changed,btfix)
|
||||||
|
@ -64,9 +64,6 @@ $(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SPARC64),y)
|
ifeq ($(CONFIG_SPARC64),y)
|
||||||
quiet_cmd_strip = STRIP $@
|
|
||||||
cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@
|
|
||||||
|
|
||||||
|
|
||||||
# Actual linking
|
# Actual linking
|
||||||
$(obj)/image: vmlinux FORCE
|
$(obj)/image: vmlinux FORCE
|
||||||
|
@ -75,6 +72,7 @@ $(obj)/image: vmlinux FORCE
|
||||||
|
|
||||||
$(obj)/zImage: $(obj)/image
|
$(obj)/zImage: $(obj)/image
|
||||||
$(call if_changed,gzip)
|
$(call if_changed,gzip)
|
||||||
|
@echo ' kernel: $@ is ready'
|
||||||
|
|
||||||
$(obj)/vmlinux.aout: vmlinux FORCE
|
$(obj)/vmlinux.aout: vmlinux FORCE
|
||||||
$(call if_changed,elftoaout)
|
$(call if_changed,elftoaout)
|
||||||
|
|
Loading…
Reference in New Issue