]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
metag: enable building of all dtbs
authorRob Herring <robh@kernel.org>
Tue, 6 Oct 2015 23:00:15 +0000 (18:00 -0500)
committerRob Herring <robh@kernel.org>
Tue, 27 Oct 2015 21:12:16 +0000 (16:12 -0500)
Enable building all dtb files when CONFIG_OF_ALL_DTBS is enabled. The dtbs
are not really dependent on a platform being enabled or any other kernel
config, so for testing coverage it is convenient to build all of the dtbs.
This builds all dts files in the tree, not just targets listed.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-metag@vger.kernel.org
arch/metag/boot/dts/Makefile

index 2533c38a691cb6cc238dee2d320032a6e1c63222..097c6da4547fb2d1b8896e31d28a3b230912a47b 100644 (file)
@@ -12,6 +12,9 @@ endif
 dtb-$(CONFIG_METAG_BUILTIN_DTB)        += $(builtindtb-y).dtb
 obj-$(CONFIG_METAG_BUILTIN_DTB)        += $(builtindtb-y).dtb.o
 
+dtstree                := $(srctree)/$(src)
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
+
 .SECONDARY: $(obj)/$(builtindtb-y).dtb.S
 
 always += $(dtb-y)