GNU Linux-libre 4.9.337-gnu1
[releases.git] / arch / microblaze / boot / Makefile
1 #
2 # arch/microblaze/boot/Makefile
3 #
4
5 targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
6
7 OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
8
9 $(obj)/linux.bin: vmlinux FORCE
10         $(call if_changed,objcopy)
11
12 $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
13         $(call if_changed,uimage)
14
15 $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
16         $(call if_changed,gzip)
17
18 quiet_cmd_cp = CP      $< $@$2
19         cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
20
21 quiet_cmd_strip = STRIP   $< $@$2
22         cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
23                                 -K _fdt_start $< -o $@$2
24
25 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
26 UIMAGE_IN = $@
27 UIMAGE_OUT = $@.ub
28
29 $(obj)/simpleImage.%: vmlinux FORCE
30         $(call if_changed,cp,.unstrip)
31         $(call if_changed,objcopy)
32         $(call if_changed,uimage)
33         $(call if_changed,strip,.strip)
34
35 clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb