Makefile (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) | Makefile (ece97f3a5fb50cf5f98886fbc63c9665f2bb199d) |
---|---|
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.% 7 8OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary --- 8 unchanged lines hidden (view full) --- 17 18$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE 19 $(call if_changed,gzip) 20 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' 21 22quiet_cmd_cp = CP $< $@$2 23 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) 24 | 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.% 7 8OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary --- 8 unchanged lines hidden (view full) --- 17 18$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE 19 $(call if_changed,gzip) 20 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' 21 22quiet_cmd_cp = CP $< $@$2 23 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) 24 |
25quiet_cmd_strip = STRIP $@ | 25quiet_cmd_strip = STRIP $< $@$2 |
26 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ | 26 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ |
27 -K _fdt_start vmlinux -o $@ | 27 -K _fdt_start $< -o $@$2 |
28 29UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) | 28 29UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) |
30UIMAGE_IN = $@ 31UIMAGE_OUT = $@.ub |
|
30 31$(obj)/simpleImage.%: vmlinux FORCE 32 $(call if_changed,cp,.unstrip) 33 $(call if_changed,objcopy) 34 $(call if_changed,uimage) | 32 33$(obj)/simpleImage.%: vmlinux FORCE 34 $(call if_changed,cp,.unstrip) 35 $(call if_changed,objcopy) 36 $(call if_changed,uimage) |
35 $(call if_changed,strip) 36 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 37 $(call if_changed,strip,.strip) 38 @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')' |
37 38clean-files += simpleImage.*.unstrip linux.bin.ub | 39 40clean-files += simpleImage.*.unstrip linux.bin.ub |