blob: b9fb9153c69db39405aa8bfa21c84ac28f0a9270 [file] [log] [blame]
Andrew Geissler3e34fba2021-03-05 15:21:55 -06001SUMMARY = "CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython."
2HOMEPAGE = "https://github.com/adafruit/Adafruit_Blinka"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=660e614bc7efb0697cc793d8a22a55c2"
5
Andrew Geissler595f6302022-01-24 19:11:47 +00006SRC_URI = "git://github.com/adafruit/Adafruit_Blinka.git;branch=main;protocol=https"
Andrew Geissler3e34fba2021-03-05 15:21:55 -06007SRCREV = "dc688f354fe779c9267c208b99f310af87e79272"
8
9S = "${WORKDIR}/git"
10
11inherit setuptools3
12
13DEPENDS += "python3-setuptools-scm-native"
14
Patrick Williams213cb262021-08-07 19:21:33 -050015do_install:append() {
Andrew Geissler3e34fba2021-03-05 15:21:55 -060016# it ships ./bcm283x/pulseio/libgpiod_pulsein which is a prebuilt
17# 32bit binary therefore we should make this specific to 32bit rpi machines (based on bcm283x) only
18 if [ ${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '1', '0', d)} = "0" ]; then
19 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/adafruit_blinka/microcontroller/bcm283x
20 fi
21}
22
Patrick Williams213cb262021-08-07 19:21:33 -050023RDEPENDS:${PN} += " \
Andrew Geissler3e34fba2021-03-05 15:21:55 -060024 libgpiod \
25 python3-adafruit-platformdetect \
26 python3-adafruit-pureio \
27 python3-core \
28"
29
Patrick Williams213cb262021-08-07 19:21:33 -050030RDEPENDS:${PN}:append:rpi = " rpi-gpio"