* [PATCH v2 00/13] Enable building all dtb files
@ 2015-10-08 17:53 Rob Herring
2015-10-08 17:53 ` [PATCH v2 09/13] mips: enable building of all dtbs Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2015-10-08 17:53 UTC (permalink / raw)
To: devicetree, linux-kernel
Cc: Grant Likely, Frank Rowand, Ian Campbell, Geert Uytterhoeven,
Olof Johansson, Chris Zankel, Max Filippov, linux-xtensa,
Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
linuxppc-dev, Ley Foon Tan, nios2-dev, Ralf Baechle, linux-mips,
James Hogan, linux-metag, Yoshinori Sato, uclinux-h8-devel,
Russell King, Catalin Marinas, Will Deacon, linux-arm-kernel,
Vineet Gupta, arm
This series enables building all the dtb files in the kernel mostly
independent of the kernel config. The option is only dependent on
COMPILE_TEST, OF, and the new OF_ALL_DTBS options. This ensures that
allyesconfig builds can build all dtb files although most arches have to
build "dtbs" target explicitly. Some arches like ARM include dtbs in the
default target.
Arch/arm-soc maintainers, Please ack and I will take this series via the DT
tree.
v2:
- Add OF_ALL_DTBS option hidden behind COMPILE_TEST
- Expand to all architectures (with more than 1 dtb)
Rob
Rob Herring (13):
of: add config option to enable building of all dtbs
arc: use common make variables for dtb builds
arc: enable building of all dtbs
arm: enable building of all dtbs
arm64: enable building of all dtbs
h8300: enable building of all dtbs
metag: use common make variables for dtb builds
metag: enable building of all dtbs
mips: enable building of all dtbs
nios2: use common make variables for dtb builds
nios2: enable building of all dtbs
powerpc: enable building of all dtbs
xtensa: enable building of all dtbs
arch/arc/Makefile | 2 +-
arch/arc/boot/dts/Makefile | 6 ++++--
arch/arm/boot/dts/Makefile | 3 +++
arch/arm64/boot/dts/Makefile | 6 ++++++
arch/h8300/boot/dts/Makefile | 3 +++
arch/metag/Makefile | 2 +-
arch/metag/boot/dts/Makefile | 7 +++----
arch/mips/boot/dts/Makefile | 3 +++
arch/nios2/Makefile | 10 +++++-----
arch/nios2/boot/Makefile | 13 +++----------
arch/nios2/boot/dts/Makefile | 6 ++++++
arch/powerpc/Makefile | 6 ++++++
arch/powerpc/boot/Makefile | 5 ++++-
arch/powerpc/boot/dts/Makefile | 5 +++++
arch/xtensa/Makefile | 4 ++++
arch/xtensa/boot/dts/Makefile | 7 ++++++-
drivers/of/Kconfig | 10 ++++++++++
17 files changed, 73 insertions(+), 25 deletions(-)
create mode 100644 arch/nios2/boot/dts/Makefile
create mode 100644 arch/powerpc/boot/dts/Makefile
--
2.1.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2 09/13] mips: enable building of all dtbs
2015-10-08 17:53 [PATCH v2 00/13] Enable building all dtb files Rob Herring
@ 2015-10-08 17:53 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2015-10-08 17:53 UTC (permalink / raw)
To: devicetree, linux-kernel
Cc: Grant Likely, Frank Rowand, Ian Campbell, Geert Uytterhoeven,
Olof Johansson, Ralf Baechle, linux-mips
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: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
---
arch/mips/boot/dts/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
index 778a340..bac7b8d 100644
--- a/arch/mips/boot/dts/Makefile
+++ b/arch/mips/boot/dts/Makefile
@@ -9,6 +9,9 @@ dts-dirs += ralink
obj-y := $(addsuffix /, $(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)
subdir-y := $(dts-dirs)
clean-files := *.dtb *.dtb.S
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-08 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 17:53 [PATCH v2 00/13] Enable building all dtb files Rob Herring
2015-10-08 17:53 ` [PATCH v2 09/13] mips: enable building of all dtbs Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox