Files
meta-sunxi/recipes-devtools/python/pya20_0.2.12.bb
Ovidiu Panait afae76b548 pya20: fix COMPATIBLE_MACHINE regex
The current regex in COMPATIBLE_MACHINE will also match machine
names which are not in the list, such as 'olinuxino-a20som204'.
Since 'olinuxino-a20som204' SOM is newer, a mapping.h file is not
available for it in upstream pya20, so there is no need to build
the recipe for it.

Add "^$" to the regex in order to restrict the pya20 recipe only to
those machines that have a mapping.h file.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
2025-08-15 12:22:29 +03:00

24 lines
863 B
BlitzBasic

DESCRIPTION = "A module to control Allwinner GPIO,SPI and I2C channels"
HOMEPAGE = "https://pypi.python.org/pypi/pyA20"
SECTION = "devel/python"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=4e584373bb0f46ef1e423cb7df37847d"
DEPENDS = "python3"
# No GPIO mappings for other machines yet
COMPATIBLE_MACHINE = "^(olinuxino-a13|olinuxino-a10|olinuxino-a20|olinuxino-a10lime|olinuxino-a20lime|olinuxino-a20lime2|olinuxino-a13som|olinuxino-a20som)$"
SRC_URI = "https://pypi.python.org/packages/source/p/pyA20/pyA20-${PV}.tar.gz \
file://mapping.h \
"
S = "${WORKDIR}/pyA20-${PV}"
inherit setuptools3
do_compile:prepend() {
cp ${UNPACKDIR}/mapping.h ${S}/pyA20/gpio/mapping.h
}
SRC_URI[md5sum] = "cab03b4931199804603d1074f6d8f48f"
SRC_URI[sha256sum] = "4bef559a9c5a4d648d9834bad996cf2805b20d6063b8051029ffdf9deda2b536"