diff mbox series

[U-Boot,17/45] fdt: Allow libfdt in TPL

Message ID 20181001182249.129565-18-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show
Series Various fixes and improvements | expand

Commit Message

Simon Glass Oct. 1, 2018, 6:22 p.m. UTC
In some cases (e.g. sandbox with verified boot) it is useful to support
libfdt in TPL. Update the Kconfig to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Simon Glass Oct. 9, 2018, 11:55 p.m. UTC | #1
In some cases (e.g. sandbox with verified boot) it is useful to support
libfdt in TPL. Update the Kconfig to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

Applied to u-boot-dm
diff mbox series

Patch

diff --git a/lib/Kconfig b/lib/Kconfig
index b711d62d32f..ccab426e121 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -353,6 +353,16 @@  config SPL_OF_LIBFDT
 	  particular compatible nodes. The library operates on a flattened
 	  version of the device tree.
 
+config TPL_OF_LIBFDT
+	bool "Enable the FDT library for TPL"
+	default y if TPL_OF_CONTROL
+	help
+	  This enables the FDT library (libfdt). It provides functions for
+	  accessing binary device tree images in memory, such as adding and
+	  removing nodes and properties, scanning through the tree and finding
+	  particular compatible nodes. The library operates on a flattened
+	  version of the device tree.
+
 config FDT_FIXUP_PARTITIONS
 	bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
 	depends on OF_LIBFDT