Skip to contentSkip to conversation

dtschema: new python package

PATCH Superseded Bartosz Golaszewski 2 participants 4 messages Sep 23, 2019

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover dtschema: new python package

From: Bartosz Golaszewski <[email protected]>

The following series adds support for the dtschema package to meta-python. It's a set of python tools allowing to verify the validity of YAML device-tree binding documents in the linux kernel. The first patch adds a dependency of dtschema - the ruamel YAML parser. The recipe for an older version exists in meta-homeassistant, but IMO it's generic enough to be added to meta-openembedded.

Bartosz Golaszewski (2):
python3-ruamel-yaml: new package
python3-dtschema: new package

 .../python/python3-dt-schema_git.bb              | 14 ++++++++++++++
 .../python/python3-ruamel-yaml_0.16.5.bb         | 16 ++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/2 python3-ruamel-yaml: new package

From: Bartosz Golaszewski <[email protected]>

Add a pypi recipe for ruamel-yaml parser.

Based on the recipe found in meta-homeassistant by Oleksandr Andrushchenko.

---
 .../python/python3-ruamel-yaml_0.16.5.bb         | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb
meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb new file +16 -0
new file mode 100644
index 000000000..ba095648f
@@ -0,0 +1,16 @@
+SUMMARY = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order."
+AUTHOR = "Anthon van der Neut"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=caf8bd842440b537c044e131785a4666"
+
+PYPI_PACKAGE = "ruamel.yaml"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "7d5a5b0a7621a1247b081cc8e4978354"
+SRC_URI[sha256sum] = "412a6f5cfdc0525dee6a27c08f5415c7fd832a7afcb7a0ed7319628aed23d408"
+
+do_install_prepend() {
+    export RUAMEL_NO_PIP_INSTALL_CHECK=1
+}
Signature · 1 line
2.23.0
#2 lore raw

PATCH 2/2 python3-dtschema: new package

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This adds a recipe for dtschema package developed by Rob Herring for easy validation of YAML device-tree files in the linux kernel.

The version is current git as the only release so far - v0.1 - is old and doesn't work with kernel's dt_binding_check make target.

---
 .../python/python3-dt-schema_git.bb                | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
meta-python/recipes-devtools/python/python3-dt-schema_git.bb new file +14 -0
new file mode 100644
index 000000000..d2b4ae1f3
@@ -0,0 +1,14 @@
+SUMMARY = "Tooling for devicetree validation using YAML and jsonschema"
+AUTHOR = "Rob Herring"
+
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;beginline=2;endline=3;md5=c795d4924c5f739424fa8d9b569c6659"
+
+inherit setuptools3
+
+SRC_URI = "git://github.com/robherring/dt-schema.git"
+SRCREV = "5009e47c1c76e48871f5988e08dad61f3c91196b"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS_${PN} = "python3-jsonschema python3-ruamel-yaml"
Signature · 1 line
2.23.0
#3 lore raw

Re: [meta-python][PATCH 2/2] python3-dtschema: new package

Quoted 21 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This adds a recipe for dtschema package developed by Rob Herring for easy validation of YAML device-tree files in the linux kernel.

The version is current git as the only release so far - v0.1 - is old and doesn't work with kernel's dt_binding_check make target.

---
 .../python/python3-dt-schema_git.bb                | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
meta-python/recipes-devtools/python/python3-dt-schema_git.bb new file +0 -0
new file mode 100644
index 000000000..d2b4ae1f3

meta-python/recipes-devtools/python/python3-dt-schema_git.bb line 10

Quoted 10 lines
meta-python/recipes-devtools/python/python3-dt-schema_git.bb new file +10 -0
@@ -0,0 +1,14 @@
+SUMMARY = "Tooling for devicetree validation using YAML and jsonschema"
+AUTHOR = "Rob Herring"
+
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;beginline=2;endline=3;md5=c795d4924c5f739424fa8d9b569c6659"
+
+inherit setuptools3
+
+SRC_URI = "git://github.com/robherring/dt-schema.git"
+SRCREV = "5009e47c1c76e48871f5988e08dad61f3c91196b"

its missing PV

Quoted 7 lines
meta-python/recipes-devtools/python/python3-dt-schema_git.bb new file +4 -1
+
+S = "${WORKDIR}/git"
+
+RDEPENDS_${PN} = "python3-jsonschema python3-ruamel-yaml"
--

2.23.0