From 081405feaa544b5b5c55a3ac72e629f3f3869a26 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Thu, 1 Jun 2017 07:02:23 +0100 Subject: 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 --- recipes-kernel/linux/linux-raspberrypi-dev.bb | 7 +++++++ 1 file changed, 7 insertions(+) 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 @@ +python __anonymous() { + if "linux-raspberrypi-dev" not in d.getVar("PREFERRED_PROVIDER_virtual/kernel"): + msg = "Skipping linux-raspberrypi-dev as it is not the preferred " + \ + "provider of virtual/kernel." + raise bb.parse.SkipRecipe(msg) +} + FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" LINUX_VERSION ?= "4.11" -- cgit v1.2.3-54-g00ecf