python3-adafruit-blinka_6.2.2.bb 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. SUMMARY = "CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython."
  2. HOMEPAGE = "https://github.com/adafruit/Adafruit_Blinka"
  3. LICENSE = "MIT"
  4. LIC_FILES_CHKSUM = "file://LICENSE;md5=660e614bc7efb0697cc793d8a22a55c2"
  5. SRC_URI = "git://github.com/adafruit/Adafruit_Blinka.git;branch=main;protocol=https"
  6. SRCREV = "dc688f354fe779c9267c208b99f310af87e79272"
  7. S = "${WORKDIR}/git"
  8. inherit setuptools3
  9. DEPENDS += "python3-setuptools-scm-native"
  10. do_install:append() {
  11. # it ships ./bcm283x/pulseio/libgpiod_pulsein which is a prebuilt
  12. # 32bit binary therefore we should make this specific to 32bit rpi machines (based on bcm283x) only
  13. if [ ${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '1', '0', d)} = "0" ]; then
  14. rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/adafruit_blinka/microcontroller/bcm283x
  15. fi
  16. }
  17. RDEPENDS:${PN} += " \
  18. libgpiod \
  19. python3-adafruit-platformdetect \
  20. python3-adafruit-pureio \
  21. python3-core \
  22. "
  23. RDEPENDS:${PN}:append:rpi = " rpi-gpio"
  24. COMPATIBLE_HOST:libc-musl:class-target = "null"