summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <pbarker@toganlabs.com>2017-06-01 07:02:23 +0100
committerAndrei Gherzan <andrei@gherzan.com>2017-06-01 13:48:23 +0100
commit081405feaa544b5b5c55a3ac72e629f3f3869a26 (patch)
tree84028e2ad4218c7216d51ae5b371bbff60130818
parente147e12d94fa7b007cc6c61682b6adba458422f6 (diff)
downloadmeta-raspberrypi-081405feaa544b5b5c55a3ac72e629f3f3869a26.tar.gz
linux-raspberrypi-dev: Skip if not preferred provider
This should avoid network traffic to resolve ${AUTOREV} unless this recipe is explicitly selected as the preferred provider of virtual/kernel. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
-rw-r--r--recipes-kernel/linux/linux-raspberrypi-dev.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi-dev.bb b/recipes-kernel/linux/linux-raspberrypi-dev.bb
index 159e1a6..0879bcb 100644
--- a/recipes-kernel/linux/linux-raspberrypi-dev.bb
+++ b/recipes-kernel/linux/linux-raspberrypi-dev.bb
@@ -1,3 +1,10 @@
1python __anonymous() {
2 if "linux-raspberrypi-dev" not in d.getVar("PREFERRED_PROVIDER_virtual/kernel"):
3 msg = "Skipping linux-raspberrypi-dev as it is not the preferred " + \
4 "provider of virtual/kernel."
5 raise bb.parse.SkipRecipe(msg)
6}
7
1FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" 8FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:"
2 9
3LINUX_VERSION ?= "4.11" 10LINUX_VERSION ?= "4.11"