Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: make unittest select OF_EARLY_FLATTREE instead of depend on it

The DT unittest currently requires an arch (typically) to select
OF_EARLY_FLATTREE. Remove this dependency by selecting it directly so that
the unittest can be enabled easily on any architecture. With this and the
prior commit, we can easily enable and run unittests starting with x86
defconfig rather than hunting for the combination of config options to
enable OF on x86.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Acked-by: Grant Likely <grant.likely@lianro.org>

+2 -1
+2 -1
drivers/of/Kconfig
··· 13 13 14 14 config OF_UNITTEST 15 15 bool "Device Tree runtime unit tests" 16 - depends on OF_IRQ && OF_EARLY_FLATTREE 16 + depends on OF_IRQ 17 + select OF_EARLY_FLATTREE 17 18 select OF_RESOLVE 18 19 help 19 20 This option builds in test cases for the device tree infrastructure