Commit | Line | Data |
---|---|---|
5f8ffb5f MS |
1 | # |
2 | # arch/microblaze/boot/Makefile | |
3 | # | |
4 | ||
ec2eba55 | 5 | targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.% |
5f8ffb5f | 6 | |
00708d42 | 7 | OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary |
5f8ffb5f MS |
8 | |
9 | $(obj)/linux.bin: vmlinux FORCE | |
10 | $(call if_changed,objcopy) | |
ec2eba55 JW |
11 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
12 | ||
13 | $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE | |
6a8dfe1c | 14 | $(call if_changed,uimage) |
5f8ffb5f MS |
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 | ||
f05131cd MS |
21 | quiet_cmd_cp = CP $< $@$2 |
22 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | |
23 | ||
24 | quiet_cmd_strip = STRIP $@ | |
ca28b510 | 25 | cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ |
61b403af | 26 | -K _fdt_start vmlinux -o $@ |
f05131cd | 27 | |
e3393645 | 28 | UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) |
6a8dfe1c | 29 | |
f05131cd MS |
30 | $(obj)/simpleImage.%: vmlinux FORCE |
31 | $(call if_changed,cp,.unstrip) | |
6a8dfe1c MS |
32 | $(call if_changed,objcopy) |
33 | $(call if_changed,uimage) | |
f05131cd MS |
34 | $(call if_changed,strip) |
35 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | |
36 | ||
a01d37d9 | 37 | clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb |