diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-27 15:07:13 -0800 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2021-03-01 10:49:06 +0000 |
commit | 5e543bd817a3eac27b4414d45cda2e570f144fc0 (patch) | |
tree | 4f87def19474289f96070bada12eec4893e86c31 /recipes-devtools/python | |
parent | 0a83508fac9397fe570415622164f56b32715ced (diff) | |
download | meta-raspberrypi-5e543bd817a3eac27b4414d45cda2e570f144fc0.tar.gz |
python3-adafruit-blinka: Delete microcontroller/bcm283x for non arm32 machines
It has prebuilt binary libgpiod_pulsein for rpi machines and these binary is 32bit
therefore we can not include it for 64bit machines even if they are rpi
based unless they have multilib enabled.
This patch makes it visible only on 32bit rpi
Fixes QA errors like
ERROR: QA Issue: Architecture did not match (ARM, expected AArch64) in /usr/lib/python3.9/site-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/.debug/libgpiod_pulsein [arch]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/python')
-rw-r--r-- | recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb b/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb index fb5db2c..7d3120f 100644 --- a/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb +++ b/recipes-devtools/python/python3-adafruit-blinka_6.2.2.bb | |||
@@ -12,6 +12,14 @@ inherit setuptools3 | |||
12 | 12 | ||
13 | DEPENDS += "python3-setuptools-scm-native" | 13 | DEPENDS += "python3-setuptools-scm-native" |
14 | 14 | ||
15 | do_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 | |||
15 | RDEPENDS_${PN} += " \ | 23 | RDEPENDS_${PN} += " \ |
16 | libgpiod \ | 24 | libgpiod \ |
17 | python3-adafruit-platformdetect \ | 25 | python3-adafruit-platformdetect \ |