Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
[sfrench/cifs-2.6.git] / arch / microblaze / boot / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # arch/microblaze/boot/Makefile
4 #
5
6 targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
7
8 OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
9
10 $(obj)/linux.bin: vmlinux FORCE
11         $(call if_changed,objcopy)
12         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
13
14 $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
15         $(call if_changed,uimage)
16         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
17
18 $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
19         $(call if_changed,gzip)
20         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
21
22 quiet_cmd_cp = CP      $< $@$2
23         cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
24
25 quiet_cmd_strip = STRIP   $< $@$2
26         cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
27                                 -K _fdt_start $< -o $@$2
28
29 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
30 UIMAGE_IN = $@
31 UIMAGE_OUT = $@.ub
32
33 $(obj)/simpleImage.%: vmlinux FORCE
34         $(call if_changed,cp,.unstrip)
35         $(call if_changed,objcopy)
36         $(call if_changed,uimage)
37         $(call if_changed,strip,.strip)
38         @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')'
39
40 clean-files += simpleImage.*.unstrip linux.bin.ub