Skip to content

Commit

Permalink
of: make CONFIG_OF user selectable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring committed Jun 5, 2015
1 parent 42ef894 commit 0166dc1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions drivers/of/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 0166dc1

Please sign in to comment.