]> git.baikalelectronics.ru Git - kernel.git/commit
of: add config option to enable building of all dtbs
authorRob Herring <robh@kernel.org>
Tue, 6 Oct 2015 22:57:33 +0000 (17:57 -0500)
committerRob Herring <robh@kernel.org>
Tue, 27 Oct 2015 21:12:13 +0000 (16:12 -0500)
commitc23da5d4d7a0d4c4ef2214b0e14d002350fa4637
tree3085fd663e1a4704fe210298ffe3786609c8210c
parent755b54c2d7664b903bfb45b7d15cb67261530d08
of: add config option to 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.

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