summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-yocto.inc
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2016-09-26 14:36:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-28 10:16:03 +0100
commitc6fbb37c823ca65b8c6b680f63036a47834aaf4d (patch)
tree95d3340585d5c5da5f035dcab45698a412f89229 /meta/recipes-kernel/linux/linux-yocto.inc
parent04a3b6c0ca4e127a0a010c31e432a1c2e356b30c (diff)
downloadpoky-c6fbb37c823ca65b8c6b680f63036a47834aaf4d.tar.gz
linux-yocto: Move PREFERRED_PROVIDER check to be generic
This check ensures that when the PREFERRED_PROVIDER for virtual/kernel changes, the previous instances gets removed correctly so when the new instance installs files into the shared area there is not an overlap of old and new. [YOCTO #10278] (From OE-Core rev: 6b67018c2c0229a91fbc55c6aafb86781caf2499) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-yocto.inc')
-rw-r--r--meta/recipes-kernel/linux/linux-yocto.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index d979662a50..a5595abe8d 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -8,6 +8,15 @@ UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
8 8
9INC_PR = "r4" 9INC_PR = "r4"
10 10
11# Skip processing of this recipe if it is not explicitly specified as the
12# PREFERRED_PROVIDER for virtual/kernel. This avoids network access required
13# by the use of AUTOREV SRCREVs, which are the default for this recipe.
14python () {
15 if d.getVar("PREFERRED_PROVIDER_virtual/kernel", True) != d.getVar("PN", True):
16 d.delVar("BB_DONT_CACHE")
17 raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to %s to enable it" % (d.getVar("PN", True)))
18}
19
11DEPENDS += "xz-native bc-native" 20DEPENDS += "xz-native bc-native"
12DEPENDS_append_aarch64 = " libgcc" 21DEPENDS_append_aarch64 = " libgcc"
13KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" 22KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"