]> Pileus Git - ~andy/linux/blob - arch/microblaze/boot/Makefile
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[~andy/linux] / arch / microblaze / boot / Makefile
1 #
2 # arch/microblaze/boot/Makefile
3 #
4
5 targets := linux.bin linux.bin.gz 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         $(call if_changed,uimage)
12         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
13
14 $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
15         $(call if_changed,gzip)
16         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
17
18 quiet_cmd_cp = CP      $< $@$2
19         cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
20
21 quiet_cmd_strip = STRIP   $@
22         cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
23                                 -K _fdt_start vmlinux -o $@
24
25 UIMAGE_IN = $@
26 UIMAGE_OUT = $@.ub
27 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
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)
34         @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
35
36
37 clean-files += simpleImage.*.unstrip linux.bin.ub