Files
OrangePi_CM5/arch/cris/boot/Makefile
T

24 lines
608 B
Makefile
Raw Normal View History

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