Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 1 | # |
| 2 | # arch/microblaze/boot/Makefile |
| 3 | # |
| 4 | |
Jason Wu | ec2eba5 | 2013-08-21 07:10:32 +0200 | [diff] [blame] | 5 | targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.% |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 6 | |
Michal Simek | 00708d4 | 2012-03-05 15:53:19 +0100 | [diff] [blame] | 7 | OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 8 | |
| 9 | $(obj)/linux.bin: vmlinux FORCE |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 10 | $(call if_changed,objcopy) |
Jason Wu | ec2eba5 | 2013-08-21 07:10:32 +0200 | [diff] [blame] | 11 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
| 12 | |
| 13 | $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE |
Michal Simek | 6a8dfe1 | 2009-10-14 17:38:26 +0200 | [diff] [blame] | 14 | $(call if_changed,uimage) |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 15 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
| 16 | |
| 17 | $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE |
| 18 | $(call if_changed,gzip) |
| 19 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
| 20 | |
Michal Simek | f05131c | 2009-09-14 15:15:49 +0200 | [diff] [blame] | 21 | quiet_cmd_cp = CP $< $@$2 |
| 22 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) |
| 23 | |
| 24 | quiet_cmd_strip = STRIP $@ |
Michal Simek | ca28b51 | 2010-07-28 09:29:11 +0200 | [diff] [blame] | 25 | cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ |
Michal Simek | 61b403a | 2010-07-28 07:58:06 +0200 | [diff] [blame] | 26 | -K _fdt_start vmlinux -o $@ |
Michal Simek | f05131c | 2009-09-14 15:15:49 +0200 | [diff] [blame] | 27 | |
Stephen Warren | e339364 | 2012-03-16 15:03:55 -0600 | [diff] [blame] | 28 | UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) |
Michal Simek | 6a8dfe1 | 2009-10-14 17:38:26 +0200 | [diff] [blame] | 29 | |
Michal Simek | f05131c | 2009-09-14 15:15:49 +0200 | [diff] [blame] | 30 | $(obj)/simpleImage.%: vmlinux FORCE |
| 31 | $(call if_changed,cp,.unstrip) |
Michal Simek | 6a8dfe1 | 2009-10-14 17:38:26 +0200 | [diff] [blame] | 32 | $(call if_changed,objcopy) |
| 33 | $(call if_changed,uimage) |
Michal Simek | f05131c | 2009-09-14 15:15:49 +0200 | [diff] [blame] | 34 | $(call if_changed,strip) |
| 35 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
| 36 | |
Michal Simek | a01d37d | 2015-01-20 09:40:14 +0100 | [diff] [blame] | 37 | clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb |