aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-05-28 13:48:45 -0400
committerRob Herring <robh@kernel.org>2015-06-04 21:16:01 -0400
commit0166dc11be911213e0b1b764488c671be4c48cf3 (patch)
tree761d25cfbfcd2bf576333f742049d3cd58d1d395
parent42ef89466b0bdfe5b08f8f603e3c924a8d7d9332 (diff)
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>
-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 @@
1config DTC 1config DTC
2 bool 2 bool
3 3
4config OF 4menuconfig OF
5 bool 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.
6 11
7menu "Device Tree and Open Firmware support" 12if OF
8 depends on OF
9 13
10config OF_UNITTEST 14config OF_UNITTEST
11 bool "Device Tree runtime unit tests" 15 bool "Device Tree runtime unit tests"
@@ -97,4 +101,4 @@ config OF_OVERLAY
97 While this option is selected automatically when needed, you can 101 While this option is selected automatically when needed, you can
98 enable it manually to improve device tree unit test coverage. 102 enable it manually to improve device tree unit test coverage.
99 103
100endmenu # OF 104endif # OF