blob: 7d3120f76d5ecad4343ad916af9e95c821331435 [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
6SRC_URI = "git://github.com/adafruit/Adafruit_Blinka.git"
7SRCREV = "dc688f354fe779c9267c208b99f310af87e79272"
8
9S = "${WORKDIR}/git"
10
11inherit setuptools3
12
13DEPENDS += "python3-setuptools-scm-native"
14
15do_install_append() {
16# 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
23RDEPENDS_${PN} += " \
24 libgpiod \
25 python3-adafruit-platformdetect \
26 python3-adafruit-pureio \
27 python3-core \
28"
29
30RDEPENDS_${PN}_append_rpi = " rpi-gpio"