From 9bfe3ca1ade52c590eca92fb6f9cf513537e2efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Pi=C3=A7arra?= Date: Mon, 6 Feb 2017 10:43:19 +0000 Subject: [PATCH] fixed recipe name, updated version and A20-SOM support added (cherry picked from commit 88b2d34302c05ab12148bb4560baa717edaa5a89) --- recipes-devtools/python/files/setup.py.patch | 4 ++-- .../python/{pyA20_0.2.0.bb => pya20_0.2.1.bb} | 6 ++--- recipes-devtools/python/pya20som_0.2.1.bb | 24 +++++++++++++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) rename recipes-devtools/python/{pyA20_0.2.0.bb => pya20_0.2.1.bb} (75%) create mode 100644 recipes-devtools/python/pya20som_0.2.1.bb diff --git a/recipes-devtools/python/files/setup.py.patch b/recipes-devtools/python/files/setup.py.patch index 753d42f..de6b8e6 100644 --- a/recipes-devtools/python/files/setup.py.patch +++ b/recipes-devtools/python/files/setup.py.patch @@ -1,5 +1,5 @@ ---- pyA20-0.2.0/setup.py 2014-09-04 12:17:18.000000000 +0200 -+++ pyA20-0.2.0/setup.py 2014-11-24 17:44:37.000000000 +0100 +--- pyA20-0.2.1/setup.py 2014-09-04 12:17:18.000000000 +0200 ++++ pyA20-0.2.1/setup.py 2014-11-24 17:44:37.000000000 +0100 @@ -43,31 +43,31 @@ Detect processor type :return: diff --git a/recipes-devtools/python/pyA20_0.2.0.bb b/recipes-devtools/python/pya20_0.2.1.bb similarity index 75% rename from recipes-devtools/python/pyA20_0.2.0.bb rename to recipes-devtools/python/pya20_0.2.1.bb index eaf5904..5b2e11e 100644 --- a/recipes-devtools/python/pyA20_0.2.0.bb +++ b/recipes-devtools/python/pya20_0.2.1.bb @@ -2,7 +2,7 @@ DESCRIPTION = "A module to control Allwinner GPIO,SPI and I2C channels" HOMEPAGE = "https://pypi.python.org/pypi/pyA20" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://PKG-INFO;md5=b4cb7d5da6f1efc1d0bf487169e83985" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bfe0261ded6cff75086193ec2f79129e" DEPENDS = "python" # No GPIO mappings for other machines yet @@ -20,5 +20,5 @@ do_compile_prepend() { cp ${WORKDIR}/mapping.h ${S}/pyA20/gpio/mapping.h } -SRC_URI[md5sum] = "b4115859834f09ebd389f810f2ffefb9" -SRC_URI[sha256sum] = "9855747d9bbdfcce6b460fcd67d953155e39f4e002a9a4c573910248b451dad8" +SRC_URI[md5sum] = "2290066bbe274000c53693959a8005b4" +SRC_URI[sha256sum] = "b15e4ee1016b7eb52001cbccde3751868624a88d2adbb9adc5404628f7e59e7e" diff --git a/recipes-devtools/python/pya20som_0.2.1.bb b/recipes-devtools/python/pya20som_0.2.1.bb new file mode 100644 index 0000000..d139557 --- /dev/null +++ b/recipes-devtools/python/pya20som_0.2.1.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "A module to control Allwinner GPIO,SPI and I2C channels" +HOMEPAGE = "https://pypi.python.org/pypi/pyA20SOM" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=cf6345f2cb2acee98b01c493d68b8322" +DEPENDS = "python" + +# No GPIO mappings for other machines yet +COMPATIBLE_MACHINE = "olinuxino-a20som" + +SRC_URI = "http://pypi.python.org/packages/source/p/pyA20SOM/pyA20SOM-${PV}.tar.gz \ + file://setup.py.patch \ + file://mapping.h \ + " +S = "${WORKDIR}/pyA20SOM-${PV}" + +inherit distutils + +do_compile_prepend() { +cp ${WORKDIR}/mapping.h ${S}/pyA20SOM/gpio/mapping.h +} + +SRC_URI[md5sum] = "a720115ef1d3dffe82f42f2157ca1c56" +SRC_URI[sha256sum] = "1ac1025596cc112964f7caac9a6a523d5da61623c248ccc178c6cbb4bc1b4549"