瀏覽代碼

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 <twoerner@gmail.com>
Trevor Woerner 2 月之前
父節點
當前提交
93375824f4
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 3 1
      recipes-core/packagegroups/packagegroup-rpi-test.bb
  2. 5 1
      recipes-devtools/pi-blaster/pi-blaster_git.bb

+ 3 - 1
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} \

+ 5 - 1
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}"