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