Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # arch/microblaze/boot/Makefile
  3. #
  4. targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
  5. OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
  6. $(obj)/linux.bin: vmlinux FORCE
  7. $(call if_changed,objcopy)
  8. @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
  9. $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
  10. $(call if_changed,uimage)
  11. @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
  12. $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
  13. $(call if_changed,gzip)
  14. @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
  15. quiet_cmd_cp = CP $< $@$2
  16. cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
  17. quiet_cmd_strip = STRIP $< $@$2
  18. cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
  19. -K _fdt_start $< -o $@$2
  20. UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
  21. UIMAGE_IN = $@
  22. UIMAGE_OUT = $@.ub
  23. $(obj)/simpleImage.%: vmlinux FORCE
  24. $(call if_changed,cp,.unstrip)
  25. $(call if_changed,objcopy)
  26. $(call if_changed,uimage)
  27. $(call if_changed,strip,.strip)
  28. @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')'
  29. clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb