xref: /OK3568_Linux_fs/buildroot/package/dtc/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_DTC
2	bool "dtc (libfdt)"
3	depends on !BR2_STATIC_LIBS
4	help
5	  The Device Tree Compiler, dtc, takes as input a device-tree in
6	  a given format and outputs a device-tree in another format.
7
8	  Note that only the library is installed.
9	  If you want the programs, say 'y' here, and to "dtc programs",
10	  below.
11
12	  https://git.kernel.org/cgit/utils/dtc/dtc.git
13
14if BR2_PACKAGE_DTC
15
16config BR2_PACKAGE_DTC_PROGRAMS
17	bool "dtc programs"
18	help
19	  Say 'y' here if you also want the programs on the target:
20	    - convert-dtsv0     convert from version 0 to version 1
21	    - dtc               the device tree compiler
22	    - dtdiff            compare two device trees (needs bash)
23	    - fdtdump           print a readable version of a
24	                        flat device tree
25	    - fdtget            read values from device tree
26	    - fdtput            write a property value to a device tree
27
28	  Note: dtdiff requires bash, so if bash is not selected, dtdiff
29	  will be removed from the target file system. Enable bash if
30	  you need dtdiff on the target.
31
32comment "dtdiff will not be installed: it requires bash"
33	depends on BR2_PACKAGE_DTC_PROGRAMS
34	depends on !BR2_PACKAGE_BASH
35
36endif
37
38comment "dtc needs a toolchain w/ dynamic library"
39	depends on BR2_STATIC_LIBS
40