linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Grant Likely <grant.likely@linaro.org>,
	Frank Rowand <frowand.list@gmail.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Olof Johansson <olof@lixom.net>
Subject: [PATCH v2 01/13] of: add config option to enable building of all dtbs
Date: Thu,  8 Oct 2015 12:53:35 -0500	[thread overview]
Message-ID: <1444326827-3565-2-git-send-email-robh@kernel.org> (raw)
In-Reply-To: <1444326827-3565-1-git-send-email-robh@kernel.org>

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.

In order to only build dtbs, this option can be used by creating an
allno.config file containing:
CONFIG_COMPILE_TEST=y
CONFIG_OF=y
CONFIG_OF_ALL_DTBS=y

And then running:
make KCONFIG_ALLCONFIG=1 allnoconfig
make dtbs

While building the dtbs themselves don't need a cross compiler, the
scripts dependency does need one. This can be hacked around by
commenting out "subdir-y += mod" in scripts/Makefile.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Grant Likely <grant.likely@linaro.org>
---
 drivers/of/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 59bb855..e2a4841 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -23,6 +23,16 @@ config OF_UNITTEST
 
 	  If unsure, say N here, but this option is safe to enable.
 
+config OF_ALL_DTBS
+	bool "Build all Device Tree Blobs"
+	depends on COMPILE_TEST
+	select DTC
+	help
+	  This option builds all possible Device Tree Blobs (DTBs) for the
+	  current architecture.
+
+	  If unsure, say N here, but this option is safe to enable.
+
 config OF_FLATTREE
 	bool
 	select DTC
-- 
2.1.4


  reply	other threads:[~2015-10-08 17:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08 17:53 [PATCH v2 00/13] Enable building all dtb files Rob Herring
2015-10-08 17:53 ` Rob Herring [this message]
2015-10-08 17:53 ` [PATCH v2 02/13] arc: use common make variables for dtb builds Rob Herring
2015-10-27 12:53   ` Vineet Gupta
2015-10-08 17:53 ` [PATCH v2 03/13] arc: enable building of all dtbs Rob Herring
2015-10-27 12:52   ` Vineet Gupta
2015-10-08 17:53 ` [PATCH v2 04/13] arm: " Rob Herring
2015-10-08 17:53 ` [PATCH v2 05/13] arm64: " Rob Herring
2015-10-08 18:15   ` Geert Uytterhoeven
2015-10-08 18:54     ` Rob Herring
2015-10-08 17:53 ` [PATCH v2 06/13] h8300: " Rob Herring
2015-10-08 17:53 ` [PATCH v2 07/13] metag: use common make variables for dtb builds Rob Herring
2015-10-08 17:53 ` [PATCH v2 08/13] metag: enable building of all dtbs Rob Herring
2015-10-08 17:53 ` [PATCH v2 09/13] mips: " Rob Herring
2015-10-08 17:53 ` [PATCH v2 10/13] nios2: use common make variables for dtb builds Rob Herring
2015-10-08 17:53 ` [PATCH v2 11/13] nios2: enable building of all dtbs Rob Herring
2015-10-08 17:53 ` [PATCH v2 12/13] powerpc: " Rob Herring
2015-10-12 10:26   ` Michael Ellerman
2015-10-13 15:24     ` Rob Herring
2015-10-08 17:53 ` [PATCH v2 13/13] xtensa: " Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444326827-3565-2-git-send-email-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=grant.likely@linaro.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@lixom.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).