2009-03-27 20:25:51 +07:00
|
|
|
#
|
|
|
|
# arch/microblaze/boot/Makefile
|
|
|
|
#
|
|
|
|
|
2013-08-21 12:10:32 +07:00
|
|
|
targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
|
2009-03-27 20:25:51 +07:00
|
|
|
|
2012-03-05 21:53:19 +07:00
|
|
|
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
|
2009-03-27 20:25:51 +07:00
|
|
|
|
|
|
|
$(obj)/linux.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
2013-08-21 12:10:32 +07:00
|
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
|
|
|
|
$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
|
2009-10-14 22:38:26 +07:00
|
|
|
$(call if_changed,uimage)
|
2009-03-27 20:25:51 +07:00
|
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
|
|
|
|
$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
|
|
|
|
$(call if_changed,gzip)
|
|
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
|
2009-09-14 20:15:49 +07:00
|
|
|
quiet_cmd_cp = CP $< $@$2
|
|
|
|
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
|
|
|
|
|
|
|
|
quiet_cmd_strip = STRIP $@
|
2010-07-28 14:29:11 +07:00
|
|
|
cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
|
2010-07-28 12:58:06 +07:00
|
|
|
-K _fdt_start vmlinux -o $@
|
2009-09-14 20:15:49 +07:00
|
|
|
|
2012-03-17 04:03:55 +07:00
|
|
|
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
|
2009-10-14 22:38:26 +07:00
|
|
|
|
2009-09-14 20:15:49 +07:00
|
|
|
$(obj)/simpleImage.%: vmlinux FORCE
|
|
|
|
$(call if_changed,cp,.unstrip)
|
2009-10-14 22:38:26 +07:00
|
|
|
$(call if_changed,objcopy)
|
|
|
|
$(call if_changed,uimage)
|
2009-09-14 20:15:49 +07:00
|
|
|
$(call if_changed,strip)
|
|
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
|
2015-01-20 15:40:14 +07:00
|
|
|
clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb
|