[U-Boot] [PATCH PATCH v6 12/13] dts: Add support for adding DT overlays in u-boot.img

Jean-Jacques Hiblot jjhiblot at ti.com
Tue Oct 22 14:39:21 UTC 2019

If u-boot.img is a FIT image, CONFIG_OF_OVERLAY_LIST can be used to add
DT overlays to u-boot.img.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>

Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None

 Makefile    | 3 ++-
 dts/Kconfig | 8 ++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6fda3268e7..46c5bd4753 100644
--- a/Makefile
+++ b/Makefile
@@ -1262,7 +1262,8 @@ MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
 	-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
-	$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST)))
+	$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) \
+	$(patsubst %,-b arch/$(ARCH)/dts/%.dtbo,$(subst ",,$(CONFIG_OF_OVERLAY_LIST)))
 MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
diff --git a/dts/Kconfig b/dts/Kconfig
index c9ab66cccc..c150a9b2af 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -130,6 +130,14 @@ config OF_LIST
 	  device tree files (without the directory or .dtb suffix)
 	  separated by <space>.
+	string "List of device tree overlays to include for DT control"
+	help
+	  This option specifies a list of device tree overlaysto use for DT
+	  control. This option can then be used a FIT generator to include
+	  the overlays in the FIT image
 	prompt "SPL OF LIST compression"
 	depends on MULTI_DTB_FIT

More information about the U-Boot mailing list