Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / microblaze / boot / Makefile
blob8e211cc28dac77594c108fee34d789205f8a3efa
2 # arch/microblaze/boot/Makefile
5 targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
7 OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
9 $(obj)/linux.bin: vmlinux FORCE
10 $(call if_changed,objcopy)
11 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
13 $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
14 $(call if_changed,uimage)
15 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
17 $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
18 $(call if_changed,gzip)
19 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
21 quiet_cmd_cp = CP $< $@$2
22 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
24 quiet_cmd_strip = STRIP $@
25 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
26 -K _fdt_start vmlinux -o $@
28 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
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`')'
38 clean-files += simpleImage.*.unstrip linux.bin.ub