summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/Makefile
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2011-07-25 09:52:12 -0600
committerGrant Likely <grant.likely@secretlab.ca>2011-07-25 09:52:12 -0600
commit5fd1a2ed0ec6fb5449c71a988cc15edb8671b3d0 (patch)
tree82d49394874271f1dcaa7c38775c1dab0b71d87f /arch/arm/boot/Makefile
parent2b4180af3faaf6088162d8a6b8d3f571bd7c2004 (diff)
downloadblackbird-op-linux-5fd1a2ed0ec6fb5449c71a988cc15edb8671b3d0.tar.gz
blackbird-op-linux-5fd1a2ed0ec6fb5449c71a988cc15edb8671b3d0.zip
arm/dt: Add dtb make rule
Add a make rule to compile dt blobs for ARM. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Shawn Guo <shawn.guo@freescale.com> Tested-by: Jason Liu <jason.hui@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/boot/Makefile')
-rw-r--r--arch/arm/boot/Makefile6
1 files changed, 6 insertions, 0 deletions
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
endif
+# Rule to build device tree blobs
+$(obj)/%.dtb: $(src)/dts/%.dts
+ $(call cmd,dtc)
+
+$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
+
quiet_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \
-C none -a $(LOADADDR) -e $(STARTADDR) \
OpenPOWER on IntegriCloud