Makefile (bf61c8840efe60fd8f91446860b63338fb424158) Makefile (ec2eba55f0c0e74dd39aca14dcc597583cf1eb67)
1#
2# arch/microblaze/boot/Makefile
3#
4
1#
2# arch/microblaze/boot/Makefile
3#
4
5targets := linux.bin linux.bin.gz simpleImage.%
5targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
6
7OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
8
9$(obj)/linux.bin: vmlinux FORCE
10 $(call if_changed,objcopy)
6
7OBJCOPYFLAGS := -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
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
18quiet_cmd_cp = CP $< $@$2
19 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
20
21quiet_cmd_strip = STRIP $@
22 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
23 -K _fdt_start vmlinux -o $@
24
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
21quiet_cmd_cp = CP $< $@$2
22 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
23
24quiet_cmd_strip = STRIP $@
25 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
26 -K _fdt_start vmlinux -o $@
27
25UIMAGE_IN = $@
26UIMAGE_OUT = $@.ub
27UIMAGE_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
37clean-files += simpleImage.*.unstrip linux.bin.ub
28UIMAGE_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
38clean-files += simpleImage.*.unstrip linux.bin.ub