of: Allow selection of OF_DYNAMIC and OF_OVERLAY if OF_UNITTEST
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 23 Jan 2015 16:10:04 +0000 (17:10 +0100)
committerGrant Likely <grant.likely@linaro.org>
Sat, 28 Mar 2015 04:03:58 +0000 (21:03 -0700)
Currently OF_DYNAMIC and OF_OVERLAY are not visible to the user, and are
selected automatically only when needed.

Allow them to be enabled manually to improve device tree unit test
coverage.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/Kconfig

index 7bcaeec..1470b52 100644 (file)
@@ -34,7 +34,11 @@ config OF_PROMTREE
 # Hardly any platforms need this.  It is safe to select, but only do so if you
 # need it.
 config OF_DYNAMIC
-       bool
+       bool "Support for dynamic device trees" if OF_UNITTEST
+       help
+         On some platforms, the device tree can be manipulated at runtime.
+         While this option is selected automatically on such platforms, you
+         can enable it manually to improve device tree unit test coverage.
 
 config OF_ADDRESS
        def_bool y
@@ -87,5 +91,10 @@ config OF_OVERLAY
        bool "Device Tree overlays"
        select OF_DYNAMIC
        select OF_RESOLVE
+       help
+         Overlays are a method to dynamically modify part of the kernel's
+         device tree with dynamically loaded data.
+         While this option is selected automatically when needed, you can
+         enable it manually to improve device tree unit test coverage.
 
 endmenu # OF