Skip to contentSkip to conversation

python3-dtc: add from meta-virtualization

PATCH New Trevor Gamblin 1 participant 1 message Jul 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python3-dtc: add from meta-virtualization

This provides pylibfdt, which is a runtime dependency for the dtschema module that we already carry in oe-core.

---
v2 adds maintainer info to maintainers.inc.

 meta/conf/distro/include/maintainers.inc      |   1 +
 ...erlay-make-overlay_get_target-public.patch | 132 ++++++++++++++++++
 .../python/python3-dtc_1.6.1.bb               |  26 ++++
 3 files changed, 159 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-dtc/0001-Revert-libfdt-overlay-make-overlay_get_target-public.patch
 create mode 100644 meta/recipes-devtools/python/python3-dtc_1.6.1.bb
meta/conf/distro/include/maintainers.inc +1 -0
index 6e82e943fa..17f038c71e 100644
@@ -614,6 +614,7 @@ RECIPE_MAINTAINER:pn-python3-cython = "Unassigned <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-dbus = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-dbusmock = "Unassigned <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-docutils = "Unassigned <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-dtc = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-dtschema = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-dtschema-wrapper = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-editables = "Ross Burton <[email protected]>"
meta/recipes-devtools/python/python3-dtc/0001-Revert-libfdt-overlay-make-overlay_get_target-public.patch new file +132 -0

132 lines not on this page · raw message

meta/recipes-devtools/python/python3-dtc_1.6.1.bb new file +26 -0
new file mode 100644
index 0000000000..a868bd0109
@@ -0,0 +1,26 @@
+SUMMARY = "Python Library for the Device Tree Compiler"
+HOMEPAGE = "https://devicetree.org/"
+DESCRIPTION = "A python library for the Device Tree Compiler, a tool used to manipulate Device Tree files which contain a data structure for describing hardware."
+SECTION = "bootloader"
+LICENSE = "GPL-2.0-only | BSD-2-Clause"
+
+DEPENDS = "flex-native bison-native swig-native python3-setuptools-scm-native libyaml dtc"
+
+SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \
+           file://0001-Revert-libfdt-overlay-make-overlay_get_target-public.patch \
+          "
+
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
+
+LIC_FILES_CHKSUM = "file://pylibfdt/libfdt.i;beginline=1;endline=6;md5=afda088c974174a29108c8d80b5dce90"
+
+SRCREV = "c001fc01a43e7a06447c06ea3d50bd60641322b8"
+
+PV = "1.6.1+git${SRCPV}"
+S = "${WORKDIR}/git"
+
+PYPA_WHEEL = "${S}/dist/libfdt-1.6.2*.whl"
+
+inherit setuptools3 pkgconfig
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.41.0