diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb b/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-adafruit-blinka_9.2.0.bb similarity index 56% rename from dynamic-layers/openembedded-layer/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb rename to dynamic-layers/openembedded-layer/recipes-devtools/python/python3-adafruit-blinka_9.2.0.bb index d479c31..6402299 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-adafruit-blinka_9.2.0.bb @@ -1,14 +1,18 @@ SUMMARY = "CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython." HOMEPAGE = "https://github.com/adafruit/Adafruit_Blinka" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=660e614bc7efb0697cc793d8a22a55c2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fccd531dce4b989c05173925f0bbb76c" -SRC_URI = "git://github.com/adafruit/Adafruit_Blinka.git;branch=main;protocol=https" -SRCREV = "dc688f354fe779c9267c208b99f310af87e79272" +SRC_URI[sha256sum] = "0358f02840f91127246d9c5fa6d49660e2ab1134cc4e56fd5d88ce4c39a50942" -inherit setuptools3 +PYPI_PACKAGE = "adafruit_blinka" -DEPENDS += "python3-setuptools-scm-native" +inherit pypi python_setuptools_build_meta + +DEPENDS += "\ + python3-setuptools-scm-native \ + python3-wheel-native \ +" do_install:append() { # it ships ./bcm283x/pulseio/libgpiod_pulsein which is a prebuilt @@ -16,6 +20,11 @@ do_install:append() { if [ ${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '1', '0', d)} = "0" ]; then rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/adafruit_blinka/microcontroller/bcm283x fi + + # Remove Amlogic as it is not related to Raspberry Pi. + # When building for raspberrypi5 (AArch64) fixes: + # QA Issue: Architecture did not match (ARM, expected AArch64) + rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/adafruit_blinka/microcontroller/amlogic } RDEPENDS:${PN} += " \ @@ -23,6 +32,7 @@ RDEPENDS:${PN} += " \ python3-adafruit-platformdetect \ python3-adafruit-pureio \ python3-core \ + python3-lgpio \ " RDEPENDS:${PN}:append:rpi = " rpi-gpio"