1# 2# arch/microblaze/boot/Makefile 3# 4 5targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.% 6 7OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary 8 9$(obj)/linux.bin: vmlinux FORCE 10 $(call if_changed,objcopy) 11 12$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE 13 $(call if_changed,uimage) 14 15$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE 16 $(call if_changed,gzip) 17 18quiet_cmd_cp = CP $< $@$2 19 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) 20 21quiet_cmd_strip = STRIP $< $@$2 22 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ 23 -K _fdt_start $< -o $@$2 24 25UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) 26UIMAGE_IN = $@ 27UIMAGE_OUT = $@.ub 28 29$(obj)/simpleImage.%: vmlinux FORCE 30 $(call if_changed,cp,.unstrip) 31 $(call if_changed,objcopy) 32 $(call if_changed,uimage) 33 $(call if_changed,strip,.strip) 34 35clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb 36