Makefile 785 B

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