18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# arch/microblaze/boot/Makefile
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_citargets := linux.bin linux.bin.gz linux.bin.ub simpleImage.*
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciOBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci$(obj)/linux.bin: vmlinux FORCE
118c2ecf20Sopenharmony_ci	$(call if_changed,objcopy)
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
148c2ecf20Sopenharmony_ci	$(call if_changed,uimage)
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
178c2ecf20Sopenharmony_ci	$(call if_changed,gzip)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciquiet_cmd_strip = STRIP   $< $@$2
208c2ecf20Sopenharmony_ci	cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
218c2ecf20Sopenharmony_ci				-K _fdt_start $< -o $@$2
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciUIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci$(obj)/simpleImage.$(DTB): vmlinux FORCE
268c2ecf20Sopenharmony_ci	$(call if_changed,objcopy)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci$(obj)/simpleImage.$(DTB).ub: $(obj)/simpleImage.$(DTB) FORCE
298c2ecf20Sopenharmony_ci	$(call if_changed,uimage)
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci$(obj)/simpleImage.$(DTB).unstrip: vmlinux FORCE
328c2ecf20Sopenharmony_ci	$(call if_changed,shipped)
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci$(obj)/simpleImage.$(DTB).strip: vmlinux FORCE
358c2ecf20Sopenharmony_ci	$(call if_changed,strip)
36