Skip to contentSkip to conversation

libubootenv: add yaml PACKAGECONFIG

PATCH Superseded Rasmus Villemoes 2 participants 2 messages Sep 16 – Sep 22

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libubootenv: add yaml PACKAGECONFIG

From: Rasmus Villemoes <[email protected]>

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.

---
 meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-bsp/u-boot/libubootenv_0.3.7.bb +4 -1
index 7b5300f38b..373f26e4b1 100644
@@ -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"
 
Signature · 1 line
2.55.0
#1 lore raw
Quoted 2 lines · Rasmus Villemoes via lists.openembedded.org

+PACKAGECONFIG[yaml] = ",-DNO_YML_SUPPORT=ON,libyaml”

Can you add -DNO_YML_SUPPORT=OFF so that we also have an explicit “yaml is on” statement?

Ross