diff mbox series

libubootenv: add yaml PACKAGECONFIG

Message ID 20260916112414.138992-1-ravi@prevas.dk
State New
Headers show
Series libubootenv: add yaml PACKAGECONFIG | expand

Commit Message

Rasmus Villemoes Sept. 16, 2026, 11:24 a.m. UTC
From: Rasmus Villemoes <ravi@prevas.dk>

The upstream project supports setting NO_YML_SUPPORT=ON to opt out of
the ability to parse its new-style yaml configuration file
format (i.e. only the traditional format used by the env tools from
U-Boot itself), and hence also removing the libyaml dependency.

Expose that as a PACKAGECONFIG knob, defaulting to on for backwards
compatibility.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
---
 meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb b/meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb
index 7b5300f38b..373f26e4b1 100644
--- a/meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb
+++ b/meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb
@@ -17,7 +17,10 @@  inherit cmake lib_package
 
 EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"
 
-DEPENDS = "zlib libyaml"
+PACKAGECONFIG ??= "yaml"
+PACKAGECONFIG[yaml] = ",-DNO_YML_SUPPORT=ON,libyaml"
+
+DEPENDS = "zlib"
 PROVIDES += "u-boot-fw-utils"
 RPROVIDES:${PN}-bin += "u-boot-fw-utils"