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