Makefile 608 B

12345678910111213141516171819202122232425
  1. #
  2. # arch/cris/boot/Makefile
  3. #
  4. objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
  5. objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
  6. OBJCOPYFLAGS = -O binary $(objcopyflags-y)
  7. subdir- := compressed rescue
  8. targets := Image
  9. $(obj)/Image: vmlinux FORCE
  10. $(call if_changed,objcopy)
  11. @echo ' Kernel: $@ is ready'
  12. $(obj)/compressed/vmlinux: $(obj)/Image FORCE
  13. $(Q)$(MAKE) $(build)=$(obj)/compressed $@
  14. $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
  15. $(obj)/zImage: $(obj)/compressed/vmlinux
  16. @cp $< $@
  17. @echo ' Kernel: $@ is ready'