Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b066824 authored by Rob Herring's avatar Rob Herring Committed by Alistair Strachan
Browse files

BACKPORT: 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: default avatarRob Herring <robh@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Acked-by: default avatarGrant Likely <grant.likely@lianro.org>
(cherry picked from commit 649e0a77e28a7796bf62bfda0fe3f2aee094bd58)
[astrachan: OF_SELFTEST was renamed to OF_UNITTEST upstream, but we
            don't need to make that change]
Bug: 70214720
Change-Id: Ia064a5743e734f5d4436ca651c3169b82a6b68aa
Signed-off-by: default avatarAlistair Strachan <astrachan@google.com>
parent dc95e2fc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13,8 +13,9 @@ if OF

config OF_SELFTEST
	bool "Device Tree Runtime self tests"
	depends on OF_IRQ && OF_EARLY_FLATTREE
	depends on OF_IRQ
	select OF_DYNAMIC
	select OF_EARLY_FLATTREE
	select OF_RESOLVE
	help
	  This option builds in test cases for the device tree infrastructure