microblaze: move "... is ready" messages to arch/microblaze/Makefile
[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
13 $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
14         $(call if_changed,uimage)
15
16 $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
17         $(call if_changed,gzip)
18
19 quiet_cmd_cp = CP      $< $@$2
20         cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
21
22 quiet_cmd_strip = STRIP   $< $@$2
23         cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
24                                 -K _fdt_start $< -o $@$2
25
26 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
27 UIMAGE_IN = $@
28 UIMAGE_OUT = $@.ub
29
30 $(obj)/simpleImage.%: vmlinux FORCE
31         $(call if_changed,cp,.unstrip)
32         $(call if_changed,objcopy)
33         $(call if_changed,uimage)
34         $(call if_changed,strip,.strip)
35
36 clean-files += simpleImage.*.unstrip linux.bin.ub