]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arm64: enable building of all dtbs
authorRob Herring <robh@kernel.org>
Thu, 8 Oct 2015 17:09:11 +0000 (12:09 -0500)
committerRob Herring <robh@kernel.org>
Tue, 27 Oct 2015 21:12:14 +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. This
is simpler for arm64 which has a bunch of sub-dirs.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
arch/arm64/boot/dts/Makefile

index d9f88330e7b0a033ed64e93a715ec47504cda523..b01ec43d1ca9b4e80775d5336d8841600852c3a4 100644 (file)
@@ -14,3 +14,9 @@ dts-dirs += sprd
 dts-dirs += xilinx
 
 subdir-y       := $(dts-dirs)
+
+dtstree                := $(srctree)/$(src)
+
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dts-dirs), $(wildcard $(dtstree)/$(d)/*.dts)))
+
+always         := $(dtb-y)