From 56d0bdb5fe818858a152a793a363bbe86d46d430 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Wed, 26 Jul 2017 12:49:51 +0200 Subject: recipe: anchor regexps in COMPATIBLE_MACHINE * bitbake is using re.match, so raspberrypi actually matches with anything ^raspberrypi.* which currently works, but it will also match with hypothetical raspberrypi-is-no-more-this-is-banana-now MACHINE which isn't intended by this COMPATIBLE_MACHINE. Signed-off-by: Martin Jansa --- recipes-devtools/bcm2835/bcm2835_1.52.bb | 2 +- recipes-devtools/pi-blaster/pi-blaster.inc | 2 +- recipes-devtools/python/rpi-gpio_0.6.2.bb | 2 +- recipes-devtools/python/rpio_0.10.0.bb | 2 +- recipes-devtools/wiringPi/wiringpi_git.bb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes-devtools') diff --git a/recipes-devtools/bcm2835/bcm2835_1.52.bb b/recipes-devtools/bcm2835/bcm2835_1.52.bb index 8e41c61..eef6afd 100644 --- a/recipes-devtools/bcm2835/bcm2835_1.52.bb +++ b/recipes-devtools/bcm2835/bcm2835_1.52.bb @@ -8,7 +8,7 @@ AUTHOR = "Mike McCauley (mikem@open.com.au)" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -COMPATIBLE_MACHINE = "raspberrypi" +COMPATIBLE_MACHINE = "^rpi$" SRC_URI = "http://www.airspayce.com/mikem/bcm2835/bcm2835-${PV}.tar.gz" diff --git a/recipes-devtools/pi-blaster/pi-blaster.inc b/recipes-devtools/pi-blaster/pi-blaster.inc index a548957..6ea4fa3 100644 --- a/recipes-devtools/pi-blaster/pi-blaster.inc +++ b/recipes-devtools/pi-blaster/pi-blaster.inc @@ -16,6 +16,6 @@ INITSCRIPT_PACKAGES = "${PN}" INITSCRIPT_NAME_${PN} = "${PN}.boot.sh" INITSCRIPT_PARAMS_${PN} = "defaults 15 85" -COMPATIBLE_MACHINE = "raspberrypi" +COMPATIBLE_MACHINE = "^rpi$" PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/recipes-devtools/python/rpi-gpio_0.6.2.bb b/recipes-devtools/python/rpi-gpio_0.6.2.bb index a08ea98..9c72168 100644 --- a/recipes-devtools/python/rpi-gpio_0.6.2.bb +++ b/recipes-devtools/python/rpi-gpio_0.6.2.bb @@ -17,5 +17,5 @@ S = "${WORKDIR}/${SRCNAME}-${PV}" inherit distutils -COMPATIBLE_MACHINE = "raspberrypi" +COMPATIBLE_MACHINE = "^rpi$" diff --git a/recipes-devtools/python/rpio_0.10.0.bb b/recipes-devtools/python/rpio_0.10.0.bb index 1a6cee7..998fdb3 100644 --- a/recipes-devtools/python/rpio_0.10.0.bb +++ b/recipes-devtools/python/rpio_0.10.0.bb @@ -14,7 +14,7 @@ S = "${WORKDIR}/${SRCNAME}-${PV}" inherit setuptools -COMPATIBLE_MACHINE = "raspberrypi" +COMPATIBLE_MACHINE = "^rpi$" RDEPENDS_${PN} = "\ python-logging \ diff --git a/recipes-devtools/wiringPi/wiringpi_git.bb b/recipes-devtools/wiringPi/wiringpi_git.bb index 7953a55..f1b01db 100644 --- a/recipes-devtools/wiringPi/wiringpi_git.bb +++ b/recipes-devtools/wiringPi/wiringpi_git.bb @@ -13,7 +13,7 @@ SRC_URI = "git://git.drogon.net/wiringPi \ file://0001-Add-initial-cross-compile-support.patch \ " -COMPATIBLE_MACHINE = "raspberrypi" +COMPATIBLE_MACHINE = "^rpi$" CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib " -- cgit v1.2.3-54-g00ecf