SmartAudio/lichee/linux-4.9/arch/microblaze/boot/Makefile

40 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2018-07-13 01:31:50 +00:00
#
# arch/microblaze/boot/Makefile
#
targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
$(obj)/linux.bin: vmlinux FORCE
$(call if_changed,objcopy)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
$(call if_changed,uimage)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
$(call if_changed,gzip)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
quiet_cmd_cp = CP $< $@$2
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
2018-12-13 10:48:25 +00:00
quiet_cmd_strip = STRIP $< $@$2
2018-07-13 01:31:50 +00:00
cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
2018-12-13 10:48:25 +00:00
-K _fdt_start $< -o $@$2
2018-07-13 01:31:50 +00:00
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
2018-12-13 10:48:25 +00:00
UIMAGE_IN = $@
UIMAGE_OUT = $@.ub
2018-07-13 01:31:50 +00:00
$(obj)/simpleImage.%: vmlinux FORCE
$(call if_changed,cp,.unstrip)
$(call if_changed,objcopy)
$(call if_changed,uimage)
2018-12-13 10:48:25 +00:00
$(call if_changed,strip,.strip)
@echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')'
2018-07-13 01:31:50 +00:00
clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb