Skip to contentSkip to conversation

python3-yamllint: Temporarily carry this new recipe

PATCH New Ryan Eatmon 1 participant 2 messages Jan 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-yamllint: Temporarily carry this new recipe

Add recipe for yamllint. There is an upcoming change in u-boot where the binman tool is now configured to call yamllint to verify the configs during compile time.

There was a previous patch a year ago from Trevor Woerner that never made it into oe-core. This patch is a reworking of his patch but pointing to a newer version.

We are waiting on this patch to be accepted in oe-core. Once it is available on master we will remove this recipe to avoid conflict.

---
 .../python-yamllint/python3-yamllint_1.33.0.bb    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-ti-extras/recipes-devtools/python-yamllint/python3-yamllint_1.33.0.bb
meta-ti-extras/recipes-devtools/python-yamllint/python3-yamllint_1.33.0.bb new file +15 -0
new file mode 100644
index 00000000..4b7bd065
@@ -0,0 +1,15 @@
+SUMMARY = "A linter for YAML files."
+HOMEPAGE = "https://github.com/adrienverge/yamllint"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "yamllint"
+
+SRC_URI[sha256sum] = "2dceab9ef2d99518a2fcf4ffc964d44250ac4459be1ba3ca315118e4a1a81f7d"
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+RDEPENDS:${PN} += "${PYTHON_PN}-pyyaml"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 u-boot-ti: Add yamllint dependency

A patch has been accepted in mainline u-boot that has binman calling yamllint to verify the configs during compile. This means that the yamllint must be available as a tool at the time.

---
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +1 -1
index ef3ebc70..3a5d8a7d 100644
@@ -27,7 +27,7 @@ PV:append = "+git${SRCPV}"
 DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native"
 
 # u-boot needs these for binman
-DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-native"
+DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-native python3-yamllint-native"
 
 # SYSFW/TIFS Firmware
 DEPENDS:append:k3 = " ti-sci-fw"
Signature · 1 line
2.17.1