diff options
author | Paul Barker <pbarker@toganlabs.com> | 2017-06-01 07:02:23 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2017-06-01 13:48:23 +0100 |
commit | 081405feaa544b5b5c55a3ac72e629f3f3869a26 (patch) | |
tree | 84028e2ad4218c7216d51ae5b371bbff60130818 | |
parent | e147e12d94fa7b007cc6c61682b6adba458422f6 (diff) | |
download | meta-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.bb | 7 |
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 @@ | |||
1 | python __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 | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" | 8 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" |
2 | 9 | ||
3 | LINUX_VERSION ?= "4.11" | 10 | LINUX_VERSION ?= "4.11" |