2 # Makefile for bootable kernel images
5 OBJCOPYFLAGS_vmlinux.bin
:= -O binary
6 $(obj
)/vmlinux.bin
: vmlinux FORCE
7 $(call if_changed
,objcopy
)
15 $(obj
)/%.dtb
: $(src
)/dts
/%.dts FORCE
16 $(call if_changed_dep
,dtc
)
18 quiet_cmd_cp
= CP
$< $@
$2
19 cmd_cp
= cat
$< >$@
$2 ||
(rm -f
$@
&& echo false
)
21 # Generate builtin.dtb from $(DTB).dtb
22 $(obj
)/builtin.dtb
: $(obj
)/$(DTB
).dtb
25 $(obj
)/linked_dtb.o
: $(obj
)/builtin.dtb
27 $(obj
)/dtbImage.
%: vmlinux
28 $(call if_changed
,objcopy
)
30 clean-files
:= $(obj
)/*.dtb