2005-04-17 05:20:36 +07:00
|
|
|
#
|
2009-04-21 16:44:57 +07:00
|
|
|
# arch/cris/boot/Makefile
|
2005-04-17 05:20:36 +07:00
|
|
|
#
|
|
|
|
|
2009-04-21 16:44:57 +07:00
|
|
|
objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
|
2010-08-03 23:27:23 +07:00
|
|
|
objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
|
2009-04-21 16:44:57 +07:00
|
|
|
|
|
|
|
OBJCOPYFLAGS = -O binary $(objcopyflags-y)
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-11-30 22:08:34 +07:00
|
|
|
subdir- := compressed rescue
|
|
|
|
targets := Image
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-11-30 22:08:34 +07:00
|
|
|
$(obj)/Image: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
@echo ' Kernel: $@ is ready'
|
|
|
|
|
|
|
|
$(obj)/compressed/vmlinux: $(obj)/Image FORCE
|
|
|
|
$(Q)$(MAKE) $(build)=$(obj)/compressed $@
|
|
|
|
$(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
|
|
|
|
|
|
|
|
$(obj)/zImage: $(obj)/compressed/vmlinux
|
|
|
|
@cp $< $@
|
|
|
|
@echo ' Kernel: $@ is ready'
|