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

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

BACKPORT: of: make CONFIG_OF user selectable



With the addition of overlays, it is now plausible to use DT on any arch
and without an arch using it at boot time. It is also desirable to
expand the compile coverage of the DT code. Make CONFIG_OF user
selectable by converting the menu to menuconfig.

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarPantelis Antoniou <pantelis.antoniou@konsulko.com>
Acked-by: default avatarGrant Likely <grant.likely@lianro.org>
(cherry picked from commit 0166dc11be911213e0b1b764488c671be4c48cf3)
[astrachan: dropped OF_OVERLAY hunk; not present on 3.18]
Bug: 70214720
Change-Id: Iabaa07bb52c0bbc4fd95949d4a5b20ac8bc74193
Signed-off-by: default avatarAlistair Strachan <astrachan@google.com>
parent 0a415271
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
config DTC
	bool

config OF
	bool
menuconfig OF
	bool "Device Tree and Open Firmware support"
	help
	  This option enables the device tree infrastructure.
	  It is automatically selected by platforms that need it or can
	  be enabled manually for unittests, overlays or
	  compile-coverage.

menu "Device Tree and Open Firmware support"
	depends on OF
if OF

config OF_SELFTEST
	bool "Device Tree Runtime self tests"
@@ -83,4 +87,4 @@ config OF_RESERVED_MEM
config OF_RESOLVE
	bool

endmenu # OF
endif # OF