aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/Makefile7
-rw-r--r--arch/arm/boot/Makefile6
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index f5b2b390c8f2..f7135595eb70 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -281,6 +281,12 @@ zImage Image xipImage bootpImage uImage: vmlinux
281zinstall uinstall install: vmlinux 281zinstall uinstall install: vmlinux
282 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 282 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
283 283
284%.dtb:
285 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
286
287dtbs:
288 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
289
284# We use MRPROPER_FILES and CLEAN_FILES now 290# We use MRPROPER_FILES and CLEAN_FILES now
285archclean: 291archclean:
286 $(Q)$(MAKE) $(clean)=$(boot) 292 $(Q)$(MAKE) $(clean)=$(boot)
@@ -297,6 +303,7 @@ define archhelp
297 echo ' uImage - U-Boot wrapped zImage' 303 echo ' uImage - U-Boot wrapped zImage'
298 echo ' bootpImage - Combined zImage and initial RAM disk' 304 echo ' bootpImage - Combined zImage and initial RAM disk'
299 echo ' (supply initrd image via make variable INITRD=<path>)' 305 echo ' (supply initrd image via make variable INITRD=<path>)'
306 echo ' dtbs - Build device tree blobs for enabled boards'
300 echo ' install - Install uncompressed kernel' 307 echo ' install - Install uncompressed kernel'
301 echo ' zinstall - Install compressed kernel' 308 echo ' zinstall - Install compressed kernel'
302 echo ' uinstall - Install U-Boot wrapped compressed kernel' 309 echo ' uinstall - Install U-Boot wrapped compressed kernel'
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
index 9128fddf1109..a1edfd5a129a 100644
--- a/arch/arm/boot/Makefile
+++ b/arch/arm/boot/Makefile
@@ -59,6 +59,12 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
59 59
60endif 60endif
61 61
62# Rule to build device tree blobs
63$(obj)/%.dtb: $(src)/dts/%.dts
64 $(call cmd,dtc)
65
66$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
67
62quiet_cmd_uimage = UIMAGE $@ 68quiet_cmd_uimage = UIMAGE $@
63 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \ 69 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \
64 -C none -a $(LOADADDR) -e $(STARTADDR) \ 70 -C none -a $(LOADADDR) -e $(STARTADDR) \