aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-10-06 18:51:21 -0400
committerRob Herring <robh@kernel.org>2015-10-27 17:12:16 -0400
commit990857042f599440ea7a10b84c17a06ed21078e5 (patch)
tree3ab1559a0f77b826e4b35a7b13eb5dc7a6219b14
parent0426f6482d5d61c0d762aafa03b27b96d02a68a7 (diff)
xtensa: enable building of all dtbs
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: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: linux-xtensa@linux-xtensa.org
-rw-r--r--arch/xtensa/Makefile4
-rw-r--r--arch/xtensa/boot/dts/Makefile7
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
index f9e6a068aafd..709b5748a2d7 100644
--- a/arch/xtensa/Makefile
+++ b/arch/xtensa/Makefile
@@ -101,6 +101,10 @@ zImage: vmlinux
101%.dtb: 101%.dtb:
102 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ 102 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
103 103
104dtbs: scripts
105 $(Q)$(MAKE) $(build)=$(boot)/dts
106
104define archhelp 107define archhelp
105 @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' 108 @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
109 @echo ' dtbs - Build device tree blobs for enabled boards'
106endef 110endef
diff --git a/arch/xtensa/boot/dts/Makefile b/arch/xtensa/boot/dts/Makefile
index 5f711bba8307..a15e241c9153 100644
--- a/arch/xtensa/boot/dts/Makefile
+++ b/arch/xtensa/boot/dts/Makefile
@@ -12,4 +12,9 @@ ifneq ($(CONFIG_BUILTIN_DTB),"")
12obj-$(CONFIG_OF) += $(BUILTIN_DTB) 12obj-$(CONFIG_OF) += $(BUILTIN_DTB)
13endif 13endif
14 14
15clean-files := *.dtb.S 15dtstree := $(srctree)/$(src)
16dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
17
18always += $(dtb-y)
19clean-files += *.dtb *.dtb.S
20