Makefile 481 B

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