[RFC/PATCH] lib/Kconfig: Enable OF_LIBFDT_OVERLAY by default when FIT is enabled
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sun Jan 29 17:30:22 CET 2023
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 at 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
More information about the U-Boot
mailing list