From ad81891ee769a25a3fae596d4187bc4181805526 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 30 Mar 2017 09:27:21 -0700 Subject: python-smbus: upgrade to 3.1.2 Upgrade to 3.1.2 and use Yocto source mirror to follow commit f76fe46e098d ("i2c-tools: point SRC_URI at Yocto source mirrors") in OpenEmbedded cores i2c-tools recipe. With the upgrade to i2c-tools 3.1.2 Python 3 support has been added. To support Python 3 add a common recipe for all common information and one for each supported Python version 2 and 3. Signed-off-by: Stefan Agner Signed-off-by: Martin Jansa --- meta-python/recipes-devtools/python/python-smbus.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-smbus.inc (limited to 'meta-python/recipes-devtools/python/python-smbus.inc') diff --git a/meta-python/recipes-devtools/python/python-smbus.inc b/meta-python/recipes-devtools/python/python-smbus.inc new file mode 100644 index 0000000000..ded30ced99 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-smbus.inc @@ -0,0 +1,18 @@ +SUMMARY = "Set of i2c tools for linux - Python module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://smbusmodule.c;startline=1;endline=17;md5=fa24df321a520ff8e10f203425ab9fa8" + +SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/i2c-tools-${PV}.tar.bz2 \ +" +SRC_URI[md5sum] = "7104a1043d11a5e2c7b131614eb1b962" +SRC_URI[sha256sum] = "db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441" + +DEPENDS += "i2c-tools" + +S = "${WORKDIR}/i2c-tools-${PV}/py-smbus/" + +do_configure_prepend() { + # Adjust for OE header rename + sed -i s:linux/i2c-dev.h:linux/i2c-dev-user.h: Module.mk + sed -i s:linux/i2c-dev.h:linux/i2c-dev-user.h: smbusmodule.c +} -- cgit 1.2.3-korg