2 # arch/microblaze/boot/Makefile
7 targets
:= linux.bin linux.bin.gz simpleImage.
%
9 OBJCOPYFLAGS
:= -R .note
-R .comment
-R .note.gnu.build-id
-O binary
11 # Ensure system.dtb exists
12 $(obj
)/linked_dtb.o
: $(obj
)/system.dtb
14 # Generate system.dtb from $(DTB).dtb
16 $(obj
)/system.dtb
: $(obj
)/$(DTB
).dtb
20 $(obj
)/linux.bin
: vmlinux FORCE
21 $(call if_changed
,objcopy
)
22 $(call if_changed
,uimage
)
23 @echo
'Kernel: $@ is ready' ' (#'`cat .version`')'
25 $(obj
)/linux.bin.gz
: $(obj
)/linux.bin FORCE
26 $(call if_changed
,gzip
)
27 @echo
'Kernel: $@ is ready' ' (#'`cat .version`')'
29 quiet_cmd_cp
= CP
$< $@
$2
30 cmd_cp
= cat
$< >$@
$2 ||
(rm -f
$@
&& echo false
)
32 quiet_cmd_strip
= STRIP
$@
33 cmd_strip
= $(STRIP
) -K microblaze_start
-K _end
-K __log_buf \
34 -K _fdt_start vmlinux
-o
$@
38 UIMAGE_LOADADDR
= $(CONFIG_KERNEL_BASE_ADDR
)
40 $(obj
)/simpleImage.
%: vmlinux FORCE
41 $(call if_changed
,cp
,.unstrip
)
42 $(call if_changed
,objcopy
)
43 $(call if_changed
,uimage
)
44 $(call if_changed
,strip)
45 @echo
'Kernel: $@ is ready' ' (#'`cat .version`')'
48 # Rule to build device tree blobs
51 $(obj
)/%.dtb
: $(src
)/dts
/%.dts FORCE
52 $(call if_changed_dep
,dtc
)
54 clean-files
+= *.dtb simpleImage.
*.unstrip linux.bin.ub