diff options
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-dev.bb | 9 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto.inc | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index dbe58477f5..9154bb7c31 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb | |||
@@ -14,15 +14,6 @@ require recipes-kernel/linux/linux-yocto.inc | |||
14 | # provide this .inc to set specific revisions | 14 | # provide this .inc to set specific revisions |
15 | include recipes-kernel/linux/linux-yocto-dev-revisions.inc | 15 | include recipes-kernel/linux/linux-yocto-dev-revisions.inc |
16 | 16 | ||
17 | # Skip processing of this recipe if it is not explicitly specified as the | ||
18 | # PREFERRED_PROVIDER for virtual/kernel. This avoids network access required | ||
19 | # by the use of AUTOREV SRCREVs, which are the default for this recipe. | ||
20 | python () { | ||
21 | if d.getVar("PREFERRED_PROVIDER_virtual/kernel", True) != "linux-yocto-dev": | ||
22 | d.delVar("BB_DONT_CACHE") | ||
23 | raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-dev to enable it") | ||
24 | } | ||
25 | |||
26 | KBRANCH = "standard/base" | 17 | KBRANCH = "standard/base" |
27 | KMETA = "kernel-meta" | 18 | KMETA = "kernel-meta" |
28 | 19 | ||
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 | ||
9 | INC_PR = "r4" | 9 | INC_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. | ||
14 | python () { | ||
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 | |||
11 | DEPENDS += "xz-native bc-native" | 20 | DEPENDS += "xz-native bc-native" |
12 | DEPENDS_append_aarch64 = " libgcc" | 21 | DEPENDS_append_aarch64 = " libgcc" |
13 | KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" | 22 | KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" |