public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC/PATCH] lib/Kconfig: Enable OF_LIBFDT_OVERLAY by default when FIT is enabled
@ 2023-01-29 16:30 Laurent Pinchart
  2023-01-29 16:43 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Laurent Pinchart @ 2023-01-29 16:30 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Praneeth Bajjuri, Maxime Ripard, Simon Glass

FIT image support is commonly used to bundle a kernel image, a device
tree, and device tree overlays. Applying overlays requires the
OF_LIBFDT_OVERLAY config option to be set, which lots of boards fail to
select, most likely because developers never noticed. This leads to an
error when trying to apply overlays:

"config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set"

TI ARM boards select the option by default. Extend this to all systems
that select the FIT option. This only affects the default, overlay
support can still be disabled manually in the configuration.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
I'm posting this as an RFC to get feedback. If the idea is generally
appreciated, I'll update the defconfig files accordingly.
---
 lib/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index 549bd3577851..d309ccf83c03 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -823,7 +823,7 @@ config OF_LIBFDT_ASSUME_MASK
 config OF_LIBFDT_OVERLAY
 	bool "Enable the FDT library overlay support"
 	depends on OF_LIBFDT
-	default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
+	default y if FIT
 	help
 	  This enables the FDT library (libfdt) overlay support.
 

base-commit: f147aa80f52989c7455022ca1ab959e8545feccc
-- 
Regards,

Laurent Pinchart


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-12  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-29 16:30 [RFC/PATCH] lib/Kconfig: Enable OF_LIBFDT_OVERLAY by default when FIT is enabled Laurent Pinchart
2023-01-29 16:43 ` Marek Vasut
2023-01-30 15:50 ` Simon Glass
2023-03-10 18:12 ` Tom Rini
2023-03-12  9:46   ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox