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