aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-11-27 16:29:11 -0700
committerRob Herring <rob.herring@calxeda.com>2012-12-03 12:48:44 -0600
commit499cd8298628eeabf0eb5eb6525d4faa0eec80d8 (patch)
treefbc46d2c5d0a04d02ba3e4881f1810b8d3fede07 /arch/arm/boot/dts
parentkbuild: centralize .dts->.dtb rule (diff)
downloadlinux-dev-499cd8298628eeabf0eb5eb6525d4faa0eec80d8.tar.xz
linux-dev-499cd8298628eeabf0eb5eb6525d4faa0eec80d8.zip
ARM: dt: change .dtb build rules to build in dts directory
The current rules have the .dtb files build in a different directory from the .dts files. The only reason for this is that it was what PowerPC has done historically. This patch changes ARM to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. Cc: Russell King <linux@arm.linux.org.uk> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: Olof Johansson <olof@lixom.net> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Grant Likely <grant.likely@secretlab.ca> [swarren: added rm command for old stale .dtb files] Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r--arch/arm/boot/dts/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index f37cf9fa5fa0..22404959b397 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -104,4 +104,12 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \
wm8505-ref.dtb \
wm8650-mid.dtb
+targets += dtbs
endif
+
+# *.dtb used to be generated in the directory above. Clean out the
+# old build results so people don't accidentally use them.
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+ $(Q)rm -f $(obj)/../*.dtb
+
+clean-files := *.dtb