2005-04-16 22:20:36 +00:00
|
|
|
#
|
2009-04-21 09:44:57 +00:00
|
|
|
# arch/cris/boot/Makefile
|
2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
|
2009-04-21 09:44:57 +00:00
|
|
|
objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
|
2010-08-03 16:27:23 +00:00
|
|
|
objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
|
2009-04-21 09:44:57 +00:00
|
|
|
|
|
|
|
OBJCOPYFLAGS = -O binary $(objcopyflags-y)
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:08:34 +00:00
|
|
|
subdir- := compressed rescue
|
|
|
|
targets := Image
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:08:34 +00: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'
|