From 93375824f4cdb9a259b48ea9673ee6a589e50a82 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Mon, 11 Aug 2025 17:00:15 -0400 Subject: [PATCH] pi-blaster: 32-bit target only The pi-blaster code only works on 32-bit targets. See https://github.com/sarfata/pi-blaster/issues/114 Signed-off-by: Trevor Woerner --- recipes-core/packagegroups/packagegroup-rpi-test.bb | 4 +++- recipes-devtools/pi-blaster/pi-blaster_git.bb | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/recipes-core/packagegroups/packagegroup-rpi-test.bb b/recipes-core/packagegroups/packagegroup-rpi-test.bb index ff8f8a4..35a2e4f 100644 --- a/recipes-core/packagegroups/packagegroup-rpi-test.bb +++ b/recipes-core/packagegroups/packagegroup-rpi-test.bb @@ -16,7 +16,6 @@ RDEPENDS:${PN} = "\ raspi-gpio \ rpio \ rpi-gpio \ - pi-blaster \ python3-adafruit-circuitpython-register \ python3-adafruit-platformdetect \ python3-adafruit-pureio \ @@ -27,6 +26,9 @@ RDEPENDS:${PN} = "\ bluez5 \ " +RDEPENDS:${PN}:append:rpi:armv7a = " pi-blaster" +RDEPENDS:${PN}:append:rpi:armv7ve = " pi-blaster" + RRECOMMENDS:${PN} = "\ ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-multimedia", "bigbuckbunny-1080p bigbuckbunny-480p bigbuckbunny-720p", "", d)} \ ${MACHINE_EXTRA_RRECOMMENDS} \ diff --git a/recipes-devtools/pi-blaster/pi-blaster_git.bb b/recipes-devtools/pi-blaster/pi-blaster_git.bb index 8705718..25bb664 100644 --- a/recipes-devtools/pi-blaster/pi-blaster_git.bb +++ b/recipes-devtools/pi-blaster/pi-blaster_git.bb @@ -16,6 +16,10 @@ INITSCRIPT_PACKAGES = "${PN}" INITSCRIPT_NAME:${PN} = "${PN}.boot.sh" INITSCRIPT_PARAMS:${PN} = "defaults 15 85" -COMPATIBLE_MACHINE = "^rpi$" +# only works on 32-bit targets +# https://github.com/sarfata/pi-blaster/issues/114 +COMPATIBLE_MACHINE = "(^$)" +COMPATIBLE_MACHINE:rpi:armv7a = "(.*)" +COMPATIBLE_MACHINE:rpi:armv7ve = "(.*)" PACKAGE_ARCH = "${MACHINE_ARCH}"