Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: Allow selection of OF_DYNAMIC and OF_OVERLAY if OF_UNITTEST

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>

authored by

Geert Uytterhoeven and committed by
Grant Likely
121c92ca 0384e8c6

+10 -1
+10 -1
drivers/of/Kconfig
··· 34 34 # Hardly any platforms need this. It is safe to select, but only do so if you 35 35 # need it. 36 36 config OF_DYNAMIC 37 - bool 37 + bool "Support for dynamic device trees" if OF_UNITTEST 38 + help 39 + On some platforms, the device tree can be manipulated at runtime. 40 + While this option is selected automatically on such platforms, you 41 + can enable it manually to improve device tree unit test coverage. 38 42 39 43 config OF_ADDRESS 40 44 def_bool y ··· 91 87 bool "Device Tree overlays" 92 88 select OF_DYNAMIC 93 89 select OF_RESOLVE 90 + help 91 + Overlays are a method to dynamically modify part of the kernel's 92 + device tree with dynamically loaded data. 93 + While this option is selected automatically when needed, you can 94 + enable it manually to improve device tree unit test coverage. 94 95 95 96 endmenu # OF