mirror of
git://git.yoctoproject.org/meta-raspberrypi
synced 2026-04-02 02:49:12 +00:00
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> (cherry picked from commit 5e543bd817a3eac27b4414d45cda2e570f144fc0) Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
This commit is contained in:
parent
cb60274634
commit
85fa37e51a
@ -12,6 +12,14 @@ inherit setuptools3
|
||||
|
||||
DEPENDS += "python3-setuptools-scm-native"
|
||||
|
||||
do_install_append() {
|
||||
# it ships ./bcm283x/pulseio/libgpiod_pulsein which is a prebuilt
|
||||
# 32bit binary therefore we should make this specific to 32bit rpi machines (based on bcm283x) only
|
||||
if [ ${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '1', '0', d)} = "0" ]; then
|
||||
rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/adafruit_blinka/microcontroller/bcm283x
|
||||
fi
|
||||
}
|
||||
|
||||
RDEPENDS_${PN} += " \
|
||||
libgpiod \
|
||||
python3-adafruit-platformdetect \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user