summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-05-28 19:48:45 +0200
committerRob Herring <robh@kernel.org>2015-06-05 03:16:01 +0200
commit0166dc11be911213e0b1b764488c671be4c48cf3 (patch)
tree761d25cfbfcd2bf576333f742049d3cd58d1d395 /drivers/of
parentMIPS: prepare for user enabling of CONFIG_OF (diff)
downloadlinux-0166dc11be911213e0b1b764488c671be4c48cf3.tar.xz
linux-0166dc11be911213e0b1b764488c671be4c48cf3.zip
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>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/Kconfig14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 07bb3c8f191b..fdf7e41e8a4b 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -1,11 +1,15 @@
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_UNITTEST
bool "Device Tree runtime unit tests"
@@ -97,4 +101,4 @@ config OF_OVERLAY
While this option is selected automatically when needed, you can
enable it manually to improve device tree unit test coverage.
-endmenu # OF
+endif # OF