18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# arch/h8300/boot/Makefile 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_citargets := vmlinux.srec vmlinux.bin zImage 58c2ecf20Sopenharmony_cisubdir- := compressed 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciOBJCOPYFLAGS_vmlinux.srec := -Osrec 88c2ecf20Sopenharmony_ciOBJCOPYFLAGS_vmlinux.bin := -Obinary 98c2ecf20Sopenharmony_ciOBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciUIMAGE_LOADADDR = $(CONFIG_RAMBASE) 128c2ecf20Sopenharmony_ciUIMAGE_ENTRYADDR = $(shell /bin/bash -c 'printf "0x%08x" \ 138c2ecf20Sopenharmony_ci $$[$(CONFIG_RAMBASE) + $(CONFIG_OFFSET)]') 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci$(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE 168c2ecf20Sopenharmony_ci $(call if_changed,objcopy) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci$(obj)/zImage: $(obj)/compressed/vmlinux FORCE 198c2ecf20Sopenharmony_ci $(call if_changed,objcopy) 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci$(obj)/compressed/vmlinux: FORCE 228c2ecf20Sopenharmony_ci $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci$(obj)/uImage.bin: $(obj)/vmlinux.bin 258c2ecf20Sopenharmony_ci $(call if_changed,uimage,none) 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciCLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec arch/$(ARCH)/uImage.bin 28