Merge branch 'acpi-ec'
[linux-drm-fsl-dcu.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         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
12
13 $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
14         $(call if_changed,uimage)
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
21 quiet_cmd_cp = CP      $< $@$2
22         cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
23
24 quiet_cmd_strip = STRIP   $@
25         cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
26                                 -K _fdt_start vmlinux -o $@
27
28 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
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)
35         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
36
37 clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb