Makefile 890 B

1234567891011121314151617181920212223242526272829303132333435
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # arch/microblaze/boot/Makefile
  4. #
  5. targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.*
  6. OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
  7. $(obj)/linux.bin: vmlinux FORCE
  8. $(call if_changed,objcopy)
  9. $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
  10. $(call if_changed,uimage)
  11. $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
  12. $(call if_changed,gzip)
  13. quiet_cmd_strip = STRIP $< $@$2
  14. cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
  15. -K _fdt_start $< -o $@$2
  16. UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
  17. $(obj)/simpleImage.$(DTB): vmlinux FORCE
  18. $(call if_changed,objcopy)
  19. $(obj)/simpleImage.$(DTB).ub: $(obj)/simpleImage.$(DTB) FORCE
  20. $(call if_changed,uimage)
  21. $(obj)/simpleImage.$(DTB).unstrip: vmlinux FORCE
  22. $(call if_changed,copy)
  23. $(obj)/simpleImage.$(DTB).strip: vmlinux FORCE
  24. $(call if_changed,strip)