Makefile 820 B

123456789101112131415161718192021222324252627
  1. # SPDX-License-Identifier: GPL-2.0
  2. # arch/h8300/boot/Makefile
  3. targets := vmlinux.srec vmlinux.bin zImage
  4. subdir- := compressed
  5. OBJCOPYFLAGS_vmlinux.srec := -Osrec
  6. OBJCOPYFLAGS_vmlinux.bin := -Obinary
  7. OBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S
  8. UIMAGE_LOADADDR = $(CONFIG_RAMBASE)
  9. UIMAGE_ENTRYADDR = $(shell /bin/bash -c 'printf "0x%08x" \
  10. $$[$(CONFIG_RAMBASE) + $(CONFIG_OFFSET)]')
  11. $(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE
  12. $(call if_changed,objcopy)
  13. $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
  14. $(call if_changed,objcopy)
  15. $(obj)/compressed/vmlinux: FORCE
  16. $(Q)$(MAKE) $(build)=$(obj)/compressed $@
  17. $(obj)/uImage.bin: $(obj)/vmlinux.bin
  18. $(call if_changed,uimage,none)
  19. CLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec arch/$(ARCH)/uImage.bin