Skip to content

Commit 0166dc1

Browse files
committed
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: Rob Herring <robh@kernel.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by: Grant Likely <grant.likely@lianro.org>
1 parent 42ef894 commit 0166dc1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

drivers/of/Kconfig

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
config DTC
22
bool
33

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

7-
menu "Device Tree and Open Firmware support"
8-
depends on OF
12+
if OF
913

1014
config OF_UNITTEST
1115
bool "Device Tree runtime unit tests"
@@ -97,4 +101,4 @@ config OF_OVERLAY
97101
While this option is selected automatically when needed, you can
98102
enable it manually to improve device tree unit test coverage.
99103

100-
endmenu # OF
104+
endif # OF

0 commit comments

Comments
 (0)