<div dir="ltr">I know I&#39;m late and this has gone through so many revisions, but I&#39;m seeing unexplained changes in buildhistory:<div><br></div><div><div>$ buildhistory-diff</div><div>packages/corei7-64-intel-common-poky-linux/linux-intel/kernel-image-bzimage: FILELIST: removed &quot;/boot/bzImage&quot;<br></div></div><div><br></div><div>Doing builds of virtual/kernel with and without this patch and comparing pkgdata directly confirms that the /boot/bzImage symlink doesn&#39;t exist with this patch but does without it.</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 November 2017 at 21:51, Haris Okanovic <span dir="ltr">&lt;<a href="mailto:haris.okanovic@ni.com" target="_blank">haris.okanovic@ni.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No problem! Thanks for all the good feedback. I think we shook out most of the gremlins in the last few months.<br>
<br>
Let me know if you need help with boot loader integration.<br>
<br>
-- Haris<div><div class="h5"><br>
<br>
<br>
On 11/08/2017 04:20 PM, Wold, Saul wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
Haris,<br>
<br>
Thanks for your patience on this process.  This version works well, now<br>
I have the extra work of getting these kernel known to systemd-boot!<br>
<br>
Acked-by below!<br>
<br>
Sau!<br>
<br>
On Tue, 2017-11-07 at 12:40 -0600, Haris Okanovic wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Some distros may want to provide alternate kernel &quot;flavors&quot; via feeds<br>
or<br>
within bootable images. For example, readily available builds which<br>
provide certain diagnostic features can enable developers and testers<br>
to<br>
more quickly resolve issues by avoiding lengthy kernel builds.<br>
<br>
This change allows for building multiple flavors of the kernel and<br>
module packages by templatizing kernel package names via a new<br>
KERNEL_PACKAGE_NAME variable in kernel.bbclass. It defaults to the<br>
old<br>
name of &quot;kernel&quot;, but can be overridden by certain recipes providing<br>
alternate kernel flavors.<br>
<br>
To maintain compatibility, recipes providing alternate kernel flavors<br>
cannot be the &quot;preferred provider&quot; for virtual/kernel. This is<br>
because<br>
OE puts the preferred provider&#39;s build and source at<br>
&quot;tmp-glibc/work-shared/$MACHIN<wbr>E/kernel-build-artifacts/&quot; and<br>
&quot;tmp-glibc/work-shared/$MACHIN<wbr>E/kernel-source/&quot; instead of<br>
&quot;tmp-glibc/work/*/$PN/&quot; like other recipes. Therefore, recipes using<br>
the<br>
default KERNEL_PACKAGE_NAME=&quot;kernel&quot; follows the old semantics --<br>
build<br>
in the old location and may be preferred provider -- while recipes<br>
using<br>
all other KERNEL_PACKAGE_NAME&#39;s build from the normal WORKDIR and<br>
don&#39;t<br>
provide &quot;virtual/kernel&quot;.<br>
<br>
Testing:<br>
  1. Add `KERNEL_PACKAGE_NAME_pn-linux-<wbr>yocto-tiny = &quot;tiny-linux&quot;`<br>
     to local.conf so that linux-yocto-tiny may build alongside<br>
     the main kernel (linux-yocto).<br>
  2. `bitbake linux-yocto linux-yocto-tiny` to build both kernel<br>
flavors.<br>
  3. Verified image and modules IPKs exist for both:<br>
     tmp-glibc/deploy/ipk/qemux86/<wbr>kernel-* for linux-yocto<br>
     tmp-glibc/deploy/ipk/qemux86/<wbr>tiny-linux* for linux-yocto-tiny<br>
  4. Verified linux-yocto is the &quot;preferred provider&quot;, and was built<br>
in<br>
     shared directory: tmp-glibc/work-shared/qemux86/<wbr>kernel-*<br>
  5. Add `CORE_IMAGE_BASE_INSTALL_appen<wbr>d_pn-core-image-base = &quot;tiny-<br>
linux&quot;`<br>
     to local.conf to install both kernel flavors in core-image-base.<br>
  6. `bitbake core-image-base` to build an image.<br>
  7. Verified image contains two bzImage&#39;s under /boot/, with<br>
     &quot;yocto-standard&quot; (linux-yocto recipe) selected to boot via<br>
symlink.<br>
<br>
Discussion threads:<br>
</div></div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.openembedded.org_pipermail_openembedded-2Dcore_2015-2DDecemb&amp;d=DwIGaQ&amp;c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&amp;r=8Bziuw3IaCGjyrSAphuGwHmVdHcVwza-srUYwL9U_Ms&amp;m=Po_g6d_nUSqHTshbn-ZaBXenlH_4CQklz7Csmi7u70A&amp;s=cJkppECRP9FwMwrmn-tbJfRpffqbPbeRXS1uCu5JsB0&amp;e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__lists.op<wbr>enembedded.org_pipermail_opene<wbr>mbedded-2Dcore_2015-2DDecemb&amp;<wbr>d=DwIGaQ&amp;c=I_0YwoKy7z5LMTVdyO6<wbr>YCiE2uzI1jjZZuIPelcSjixA&amp;r=8Bz<wbr>iuw3IaCGjyrSAphuGwHmVdHcVwza-<wbr>srUYwL9U_Ms&amp;m=Po_g6d_nUSqHTshb<wbr>n-ZaBXenlH_4CQklz7Csmi7u70A&amp;s=<wbr>cJkppECRP9FwMwrmn-tbJfRpffqbPb<wbr>eRXS1uCu5JsB0&amp;e=</a><br>
er/thread.html#114122<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.openembedded.org_pipermail_openembedded-2Dcore_2017-2DJuly_t&amp;d=DwIGaQ&amp;c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&amp;r=8Bziuw3IaCGjyrSAphuGwHmVdHcVwza-srUYwL9U_Ms&amp;m=Po_g6d_nUSqHTshbn-ZaBXenlH_4CQklz7Csmi7u70A&amp;s=B73w8-RIOKqgiEjZMC2ra49Q1594cWVJp9c6Yx6u34w&amp;e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__lists.op<wbr>enembedded.org_pipermail_opene<wbr>mbedded-2Dcore_2017-2DJuly_t&amp;<wbr>d=DwIGaQ&amp;c=I_0YwoKy7z5LMTVdyO6<wbr>YCiE2uzI1jjZZuIPelcSjixA&amp;r=8Bz<wbr>iuw3IaCGjyrSAphuGwHmVdHcVwza-<wbr>srUYwL9U_Ms&amp;m=Po_g6d_nUSqHTshb<wbr>n-ZaBXenlH_4CQklz7Csmi7u70A&amp;s=<wbr>B73w8-RIOKqgiEjZMC2ra49Q1594cW<wbr>VJp9c6Yx6u34w&amp;e=</a><div><div class="h5"><br>
hread.html#139130<br>
<br>
[YOCTO #11363]<br>
<br>
Signed-off-by: Ioan-Adrian Ratiu &lt;<a href="mailto:adrian.ratiu@ni.com" target="_blank">adrian.ratiu@ni.com</a>&gt;<br>
Signed-off-by: Gratian Crisan &lt;<a href="mailto:gratian.crisan@ni.com" target="_blank">gratian.crisan@ni.com</a>&gt;<br>
Signed-off-by: Haris Okanovic &lt;<a href="mailto:haris.okanovic@ni.com" target="_blank">haris.okanovic@ni.com</a>&gt;<br>
Coauthored-by: Gratian Crisan &lt;<a href="mailto:gratian.crisan@ni.com" target="_blank">gratian.crisan@ni.com</a>&gt;<br>
Coauthored-by: Haris Okanovic &lt;<a href="mailto:haris.okanovic@ni.com" target="_blank">haris.okanovic@ni.com</a>&gt;<br>
Coauthored-by: Josh Hernstrom &lt;<a href="mailto:josh.hernstrom@ni.com" target="_blank">josh.hernstrom@ni.com</a>&gt;<br>
</div></div></blockquote><div><div class="h5">
<br>
Acked-by: Saul Wold &lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;<br>
<br>
Sau!<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
---<br>
[PATCH v2] Change STAGING_KERNEL_DIR and STAGING_KERNEL_BUILDDIR to<br>
the<br>
&quot;work&quot; directory in alternate kernel builds, instead of &quot;work-<br>
shared&quot;,<br>
so<br>
that the two builds don&#39;t clobber each other.<br>
<br>
[PATCH v3] An updated version of this change rebased onto the current<br>
OE-core master. Changes:<br>
  - Remove PREFERRED_PROVIDER check in linux-yocto.inc in alternate<br>
    kernel builds, since alternate kernels aren&#39;t the<br>
    PREFERRED_PROVIDER for virtual/kernel by definition.<br>
  - Remove &quot;virtual/kernel&quot; from PROVIDES in alternate kernel builds.<br>
<br>
[PATCH v4] Another rebase onto master; no functional change.<br>
Improved description and testing steps.<br>
<br>
[PATCH v5]<br>
  - Warn when PN == KERNEL_PACKAGE_NAME (bug # 11905)<br>
  - Add KERNEL_DEPLOYSUBDIR to avoid DEPLOYDIR collisions<br>
<br>
[PATCH v6] Add KERNEL_PACKAGE_NAME to kernel-module-split.bbclass for<br>
module recipes; fixes lttng-modules build.<br>
<br>
[PATCH v7] Remove second definition of KERNEL_PACKAGE_NAME from<br>
kernel-module-split.bbclass; apply a default in two places where<br>
KERNEL_PACKAGE_NAME is referenced.<br>
<br>
[PATCH v8] Rebase onto current master and more fixups.<br>
  - kernel-devicetree.bbclass: Fixup package names<br>
  - depmodwrapper-cross: don&#39;t error when called from alt kernel<br>
recipes<br>
  - kernel.bbclass: Don&#39;t install /boot/image symlink in alt recipes<br>
<br>
[PATCH v9]<br>
  - Add feature tracking tag<br>
  - Update testing section to define vars in local.conf<br>
  - Add KERNEL_PACKAGE_NAME check to *-rt recipes<br>
<br>
</div></div><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_harisokanovic_openembedded-2Dcore_tree_dev_hokanovi_&amp;d=DwIGaQ&amp;c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&amp;r=8Bziuw3IaCGjyrSAphuGwHmVdHcVwza-srUYwL9U_Ms&amp;m=Po_g6d_nUSqHTshbn-ZaBXenlH_4CQklz7Csmi7u70A&amp;s=g1DTbKMM_NmbTwVK6ABKrg7v5Qst-DAX8wovpBEZiQQ&amp;e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__github.<wbr>com_harisokanovic_openembedded<wbr>-2Dcore_tree_dev_hokanovi_&amp;d=<wbr>DwIGaQ&amp;c=I_0YwoKy7z5LMTVdyO6YC<wbr>iE2uzI1jjZZuIPelcSjixA&amp;r=8Bziu<wbr>w3IaCGjyrSAphuGwHmVdHcVwza-<wbr>srUYwL9U_Ms&amp;m=Po_g6d_nUSqHTshb<wbr>n-ZaBXenlH_4CQklz7Csmi7u70A&amp;s=<wbr>g1DTbKMM_NmbTwVK6ABKrg7v5Qst-D<wbr>AX8wovpBEZiQQ&amp;e=</a><div><div class="h5"><br>
multi-kernel-packages-v9<br>
---<br>
  meta/classes/kernel-devicetree<wbr>.bbclass             |   8 +-<br>
  meta/classes/kernel-module-spl<wbr>it.bbclass           |   9 +-<br>
  meta/classes/kernel.bbclass                        | 114<br>
+++++++++++++--------<br>
  meta/conf/documentation.conf                       |   1 +<br>
  .../recipes-kernel/kmod/<a href="http://depmodwrapper-cross_1.0.bb" rel="noreferrer" target="_blank">depmod<wbr>wrapper-cross_1.0.bb</a> |  14 +--<br>
  meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.10.bb" rel="noreferrer" target="_blank">linu<wbr>x-yocto-rt_4.10.bb</a>   |   2 +-<br>
  meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.12.bb" rel="noreferrer" target="_blank">linu<wbr>x-yocto-rt_4.12.bb</a>   |   2 +-<br>
  meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.4.bb" rel="noreferrer" target="_blank">linu<wbr>x-yocto-rt_4.4.bb</a>    |   2 +-<br>
  meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.9.bb" rel="noreferrer" target="_blank">linu<wbr>x-yocto-rt_4.9.bb</a>    |   2 +-<br>
  meta/recipes-kernel/linux/linu<wbr>x-yocto.inc          |   2 +-<br>
  10 files changed, 94 insertions(+), 62 deletions(-)<br>
<br>
diff --git a/meta/classes/kernel-devicetr<wbr>ee.bbclass<br>
b/meta/classes/kernel-devicetr<wbr>ee.bbclass<br>
index 6e08be4b70..4f80cc62eb 100644<br>
--- a/meta/classes/kernel-devicetr<wbr>ee.bbclass<br>
+++ b/meta/classes/kernel-devicetr<wbr>ee.bbclass<br>
@@ -1,10 +1,10 @@<br>
  # Support for device tree generation<br>
  PACKAGES_append = &quot; \<br>
-    kernel-devicetree \<br>
-    ${@[&#39;kernel-image-zimage-bundl<wbr>e&#39;,<br>
&#39;&#39;][d.getVar(&#39;KERNEL_DEVICETRE<wbr>E_BUNDLE&#39;) != &#39;1&#39;]} \<br>
+    ${KERNEL_PACKAGE_NAME}-devicet<wbr>ree \<br>
+    ${@[d.getVar(&#39;KERNEL_PACKAGE_N<wbr>AME&#39;) + &#39;-image-zimage-bundle&#39;,<br>
&#39;&#39;][d.getVar(&#39;KERNEL_DEVICETRE<wbr>E_BUNDLE&#39;) != &#39;1&#39;]} \<br>
  &quot;<br>
-FILES_kernel-devicetree = &quot;/${KERNEL_IMAGEDEST}/*.dtb<br>
/${KERNEL_IMAGEDEST}/*.dtbo&quot;<br>
-FILES_kernel-image-zimage-bun<wbr>dle = &quot;/${KERNEL_IMAGEDEST}/zImage-<br>
*.dtb.bin&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>devicetree =<br>
&quot;/${KERNEL_IMAGEDEST}/*.dtb /${KERNEL_IMAGEDEST}/*.dtbo&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>image-zimage-bundle =<br>
&quot;/${KERNEL_IMAGEDEST}/zImage-*<wbr>.dtb.bin&quot;<br>
    # Generate kernel+devicetree bundle<br>
  KERNEL_DEVICETREE_BUNDLE ?= &quot;0&quot;<br>
diff --git a/meta/classes/kernel-module-s<wbr>plit.bbclass<br>
b/meta/classes/kernel-module-s<wbr>plit.bbclass<br>
index 1035525dac..73c7f18c78 100644<br>
--- a/meta/classes/kernel-module-s<wbr>plit.bbclass<br>
+++ b/meta/classes/kernel-module-s<wbr>plit.bbclass<br>
@@ -30,7 +30,7 @@ do_install_append() {<br>
    PACKAGESPLITFUNCS_prepend = &quot;split_kernel_module_packages &quot;<br>
  -KERNEL_MODULES_META_PACKAGE ?= &quot;kernel-modules&quot;<br>
+KERNEL_MODULES_META_PACKAGE ?= &quot;${@ d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>,<br>
True) or &quot;kernel&quot; }-modules&quot;<br>
    KERNEL_MODULE_PACKAGE_PREFIX ?= &quot;&quot;<br>
  KERNEL_MODULE_PACKAGE_SUFFIX ?= &quot;-${KERNEL_VERSION}&quot;<br>
@@ -129,16 +129,19 @@ python split_kernel_module_packages () {<br>
             postfix = format.split(&#39;%s&#39;)[1]<br>
             d.setVar(&#39;RPROVIDES_&#39; + pkg, pkg.replace(postfix, &#39;&#39;))<br>
  +    kernel_package_name = d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) or<br>
&quot;kernel&quot;<br>
+    kernel_version = d.getVar(&quot;KERNEL_VERSION&quot;, True)<br>
+<br>
      module_regex = &#39;^(.*)\.k?o$&#39;<br>
        module_pattern_prefix = d.getVar(&#39;KERNEL_MODULE_PACKAG<wbr>E_PREFIX&#39;)<br>
      module_pattern_suffix = d.getVar(&#39;KERNEL_MODULE_PACKAG<wbr>E_SUFFIX&#39;)<br>
-    module_pattern = module_pattern_prefix + &#39;kernel-module-%s&#39; +<br>
module_pattern_suffix<br>
+    module_pattern = module_pattern_prefix + kernel_package_name +<br>
&#39;-module-%s&#39; + module_pattern_suffix<br>
        postinst = d.getVar(&#39;pkg_postinst_modules<wbr>&#39;)<br>
      postrm = d.getVar(&#39;pkg_postrm_modules&#39;)<br>
  -    modules = do_split_packages(d,<br>
root=&#39;${nonarch_base_libdir}/m<wbr>odules&#39;, file_regex=module_regex,<br>
output_pattern=module_pattern, description=&#39;%s kernel module&#39;,<br>
postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata,<br>
extra_depends=&#39;kernel-%s&#39; % (d.getVar(&quot;KERNEL_VERSION&quot;)))<br>
+    modules = do_split_packages(d,<br>
root=&#39;${nonarch_base_libdir}/m<wbr>odules&#39;, file_regex=module_regex,<br>
output_pattern=module_pattern, description=&#39;%s kernel module&#39;,<br>
postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata,<br>
extra_depends=&#39;%s-%s&#39; % (kernel_package_name, kernel_version))<br>
      if modules:<br>
          metapkg = d.getVar(&#39;KERNEL_MODULES_META_<wbr>PACKAGE&#39;)<br>
          d.appendVar(&#39;RDEPENDS_&#39; + metapkg, &#39; &#39;+&#39; &#39;.join(modules))<br>
diff --git a/meta/classes/kernel.bbclass<br>
b/meta/classes/kernel.bbclass<br>
index 756707a3c2..48b718d777 100644<br>
--- a/meta/classes/kernel.bbclass<br>
+++ b/meta/classes/kernel.bbclass<br>
@@ -1,6 +1,9 @@<br>
  inherit linux-kernel-base kernel-module-split<br>
  -PROVIDES += &quot;virtual/kernel&quot;<br>
+KERNEL_PACKAGE_NAME ??= &quot;kernel&quot;<br>
+KERNEL_DEPLOYSUBDIR ??= &quot;${@ &quot;&quot; if (d.getVar(&quot;KERNEL_PACKAGE_NAME<wbr>&quot;,<br>
True) == &quot;kernel&quot;) else d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) }&quot;<br>
+<br>
+PROVIDES += &quot;${@ &quot;virtual/kernel&quot; if<br>
(d.getVar(&quot;KERNEL_PACKAGE_NAME<wbr>&quot;, True) == &quot;kernel&quot;) else &quot;&quot; }&quot;<br>
  DEPENDS += &quot;virtual/${TARGET_PREFIX}binut<wbr>ils<br>
virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native&quot;<br>
  PACKAGE_WRITE_DEPS += &quot;depmodwrapper-cross&quot;<br>
  @@ -34,11 +37,32 @@ KERNEL_VERSION_PKG_NAME = &quot;${@legitimize_package_<br>
name(d.getVar(&#39;KERNEL_VERSION&#39;<wbr>)<br>
  KERNEL_VERSION_PKG_NAME[vardep<wbr>value] = &quot;${LINUX_VERSION}&quot;<br>
    python __anonymous () {<br>
+    pn = d.getVar(&quot;PN&quot;, True)<br>
+    kpn = d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True)<br>
+<br>
+    # XXX Remove this after bug 11905 is resolved<br>
+    #  FILES_${KERNEL_PACKAGE_NAME}-d<wbr>ev doesn&#39;t expand correctly<br>
+    if kpn == pn:<br>
+        bb.warn(&quot;Some packages (E.g. *-dev) might be missing due to<br>
&quot;<br>
+                &quot;bug 11905 (variable KERNEL_PACKAGE_NAME == PN)&quot;)<br>
+<br>
+    # The default kernel recipe builds in a shared location defined<br>
by<br>
+    # bitbake/distro confs: STAGING_KERNEL_DIR and<br>
STAGING_KERNEL_BUILDDIR.<br>
+    # Set these variables to directories under ${WORKDIR} in<br>
alternate<br>
+    # kernel recipes (I.e. where KERNEL_PACKAGE_NAME != kernel) so<br>
that they<br>
+    # may build in parallel with the default kernel without<br>
clobbering.<br>
+    if kpn != &quot;kernel&quot;:<br>
+        workdir = d.getVar(&quot;WORKDIR&quot;, True)<br>
+        sourceDir = os.path.join(workdir, &#39;kernel-source&#39;)<br>
+        artifactsDir = os.path.join(workdir, &#39;kernel-build-<br>
artifacts&#39;)<br>
+        d.setVar(&quot;STAGING_KERNEL_DIR&quot;, sourceDir)<br>
+        d.setVar(&quot;STAGING_KERNEL_BUILD<wbr>DIR&quot;, artifactsDir)<br>
        # Merge KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE into<br>
KERNEL_IMAGETYPES<br>
      type = d.getVar(&#39;KERNEL_IMAGETYPE&#39;) or &quot;&quot;<br>
      alttype = d.getVar(&#39;KERNEL_ALT_IMAGETYPE<wbr>&#39;) or &quot;&quot;<br>
      types = d.getVar(&#39;KERNEL_IMAGETYPES&#39;) or &quot;&quot;<br>
+    kname = d.getVar(&#39;KERNEL_PACKAGE_NAME&#39;<wbr>, True) or &quot;kernel&quot;<br>
      if type not in types.split():<br>
          types = (type + &#39; &#39; + types).strip()<br>
      if alttype not in types.split():<br>
@@ -55,15 +79,15 @@ python __anonymous () {<br>
          typelower = type.lower()<br>
          imagedest = d.getVar(&#39;KERNEL_IMAGEDEST&#39;)<br>
  -        d.appendVar(&#39;PACKAGES&#39;, &#39; &#39; + &#39;kernel-image-&#39; + typelower)<br>
+        d.appendVar(&#39;PACKAGES&#39;, &#39; %s-image-%s&#39; % (kname, typelower))<br>
  -        d.setVar(&#39;FILES_kernel-image-&#39; + typelower, &#39;/&#39; + imagedest<br>
+ &#39;/&#39; + type + &#39;-${KERNEL_VERSION_NAME}&#39; + &#39; /&#39; + imagedest + &#39;/&#39; +<br>
type)<br>
+        d.setVar(&#39;FILES_&#39; + kname + &#39;-image-&#39; + typelower, &#39;/&#39; +<br>
imagedest + &#39;/&#39; + type + &#39;-${KERNEL_VERSION_NAME}&#39; + &#39; /&#39; + imagedest<br>
+ &#39;/&#39; + type)<br>
  -        d.appendVar(&#39;RDEPENDS_kernel-i<wbr>mage&#39;, &#39; &#39; + &#39;kernel-image-&#39; +<br>
typelower)<br>
+        d.appendVar(&#39;RDEPENDS_%s-image<wbr>&#39; % kname, &#39; %s-image-%s&#39; %<br>
(kname, typelower))<br>
  -        d.setVar(&#39;PKG_kernel-image-&#39; + typelower, &#39;kernel-image-&#39; +<br>
typelower + &#39;-${KERNEL_VERSION_PKG_NAME}&#39;)<br>
+        d.setVar(&#39;PKG_%s-image-%s&#39; % (kname,typelower), &#39;%s-image-<br>
%s-${KERNEL_VERSION_PKG_NAME}&#39; % (kname, typelower))<br>
  -        d.setVar(&#39;ALLOW_EMPTY_kernel-i<wbr>mage-&#39; + typelower, &#39;1&#39;)<br>
+        d.setVar(&#39;ALLOW_EMPTY_%s-image<wbr>-%s&#39; % (kname, typelower),<br>
&#39;1&#39;)<br>
        image = d.getVar(&#39;INITRAMFS_IMAGE&#39;)<br>
      if image:<br>
@@ -121,9 +145,9 @@ base_do_unpack_append () {<br>
    inherit kernel-arch deploy<br>
  -PACKAGES_DYNAMIC += &quot;^kernel-module-.*&quot;<br>
-PACKAGES_DYNAMIC += &quot;^kernel-image-.*&quot;<br>
-PACKAGES_DYNAMIC += &quot;^kernel-firmware-.*&quot;<br>
+PACKAGES_DYNAMIC += &quot;^${KERNEL_PACKAGE_NAME}-modul<wbr>e-.*&quot;<br>
+PACKAGES_DYNAMIC += &quot;^${KERNEL_PACKAGE_NAME}-image<wbr>-.*&quot;<br>
+PACKAGES_DYNAMIC += &quot;^${KERNEL_PACKAGE_NAME}-firmw<wbr>are-.*&quot;<br>
    export OS = &quot;${TARGET_OS}&quot;<br>
  export CROSS_COMPILE = &quot;${TARGET_PREFIX}&quot;<br>
@@ -339,7 +363,9 @@ kernel_do_install() {<br>
        install -d ${D}/boot<br>
        for type in ${KERNEL_IMAGETYPES} ; do<br>
                install -m 0644 ${KERNEL_OUTPUT_DIR}/${type}<br>
${D}/${KERNEL_IMAGEDEST}/${typ<wbr>e}-${KERNEL_VERSION}<br>
-               ln -sf ${type}-${KERNEL_VERSION}<br>
${D}/${KERNEL_IMAGEDEST}/${typ<wbr>e}<br>
+               if [ &quot;${KERNEL_PACKAGE_NAME}&quot; == &quot;kernel&quot; ]; then<br>
+                       ln -sf ${type}-${KERNEL_VERSION}<br>
${D}/${KERNEL_IMAGEDEST}/${typ<wbr>e}<br>
+               fi<br>
        done<br>
        install -m 0644 System.map ${D}/boot/System.map-<br>
${KERNEL_VERSION}<br>
        install -m 0644 .config ${D}/boot/config-${KERNEL_VERS<wbr>ION}<br>
@@ -393,9 +419,9 @@ do_shared_workdir_setscene () {<br>
    emit_depmod_pkgdata() {<br>
        # Stash data for depmod<br>
-       install -d ${PKGDESTWORK}/kernel-depmod/<br>
-       echo &quot;${KERNEL_VERSION}&quot; &gt; ${PKGDESTWORK}/kernel-<br>
depmod/kernel-abiversion<br>
-       cp ${B}/System.map ${PKGDESTWORK}/kernel-depmod/S<wbr>ystem.map-<br>
${KERNEL_VERSION}<br>
+       install -d ${PKGDESTWORK}/${KERNEL_PACKAG<wbr>E_NAME}-depmod/<br>
+       echo &quot;${KERNEL_VERSION}&quot; &gt;<br>
${PKGDESTWORK}/${KERNEL_PACKAG<wbr>E_NAME}-depmod/${KERNEL_PACKAG<wbr>E_NAME}-<br>
abiversion<br>
+       cp ${B}/System.map ${PKGDESTWORK}/${KERNEL_PACKAG<wbr>E_NAME}-<br>
depmod/System.map-${KERNEL_VER<wbr>SION}<br>
  }<br>
    PACKAGEFUNCS += &quot;emit_depmod_pkgdata&quot;<br>
@@ -410,7 +436,7 @@ do_shared_workdir () {<br>
        # Store the kernel version in sysroots for module-<br>
base.bbclass<br>
        #<br>
  -     echo &quot;${KERNEL_VERSION}&quot; &gt; $kerneldir/kernel-abiversion<br>
+       echo &quot;${KERNEL_VERSION}&quot; &gt;<br>
$kerneldir/${KERNEL_PACKAGE_NA<wbr>ME}-abiversion<br>
        # Copy files required for module builds<br>
        cp System.map $kerneldir/System.map-${KERNEL<wbr>_VERSION}<br>
@@ -508,28 +534,28 @@ EXPORT_FUNCTIONS do_compile do_install<br>
do_configure<br>
    # kernel-base becomes kernel-${KERNEL_VERSION}<br>
  # kernel-image becomes kernel-image-${KERNEL_VERSION}<br>
-PACKAGES = &quot;kernel kernel-base kernel-vmlinux kernel-image kernel-<br>
dev kernel-modules&quot;<br>
+PACKAGES = &quot;${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base<br>
${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image<br>
${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules<wbr>&quot;<br>
  FILES_${PN} = &quot;&quot;<br>
-FILES_kernel-base =<br>
&quot;${nonarch_base_libdir}/module<wbr>s/${KERNEL_VERSION}/modules.<wbr>order<br>
${nonarch_base_libdir}/modules<wbr>/${KERNEL_VERSION}/modules.<wbr>builtin&quot;<br>
-FILES_kernel-image = &quot;&quot;<br>
-FILES_kernel-dev = &quot;/boot/System.map* /boot/Module.symvers*<br>
/boot/config* ${KERNEL_SRC_PATH}<br>
${nonarch_base_libdir}/modules<wbr>/${KERNEL_VERSION}/build&quot;<br>
-FILES_kernel-vmlinux = &quot;/boot/vmlinux-${KERNEL_VERSIO<wbr>N_NAME}&quot;<br>
-FILES_kernel-modules = &quot;&quot;<br>
-RDEPENDS_kernel = &quot;kernel-base&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>base =<br>
&quot;${nonarch_base_libdir}/module<wbr>s/${KERNEL_VERSION}/modules.<wbr>order<br>
${nonarch_base_libdir}/modules<wbr>/${KERNEL_VERSION}/modules.<wbr>builtin&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>image = &quot;&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>dev = &quot;/boot/System.map*<br>
/boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}<br>
${nonarch_base_libdir}/modules<wbr>/${KERNEL_VERSION}/build&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>vmlinux = &quot;/boot/vmlinux-<br>
${KERNEL_VERSION_NAME}&quot;<br>
+FILES_${KERNEL_PACKAGE_NAME}-<wbr>modules = &quot;&quot;<br>
+RDEPENDS_${KERNEL_PACKAGE_NAM<wbr>E} = &quot;${KERNEL_PACKAGE_NAME}-base&quot;<br>
  # Allow machines to override this dependency if kernel image files<br>
are<br>
  # not wanted in images as standard<br>
-RDEPENDS_kernel-base ?= &quot;kernel-image&quot;<br>
-PKG_kernel-image = &quot;kernel-image-${@legitimize_pa<wbr>ckage_name(&#39;${KERNE<br>
L_VERSION}&#39;)}&quot;<br>
-RDEPENDS_kernel-image += &quot;${@base_conditional(&#39;KERNEL_I<wbr>MAGETYPE&#39;,<br>
&#39;vmlinux&#39;, &#39;kernel-vmlinux&#39;, &#39;&#39;, d)}&quot;<br>
-PKG_kernel-base = &quot;kernel-${@legitimize_package_<wbr>name(&#39;${KERNEL_VERSI<br>
ON}&#39;)}&quot;<br>
-RPROVIDES_kernel-base += &quot;kernel-${KERNEL_VERSION}&quot;<br>
-ALLOW_EMPTY_kernel = &quot;1&quot;<br>
-ALLOW_EMPTY_kernel-base = &quot;1&quot;<br>
-ALLOW_EMPTY_kernel-image = &quot;1&quot;<br>
-ALLOW_EMPTY_kernel-modules = &quot;1&quot;<br>
-DESCRIPTION_kernel-modules = &quot;Kernel modules meta package&quot;<br>
-<br>
-pkg_postinst_kernel-base () {<br>
+RDEPENDS_${KERNEL_PACKAGE_NAM<wbr>E}-base ?= &quot;${KERNEL_PACKAGE_NAME}-<br>
image&quot;<br>
+PKG_${KERNEL_PACKAGE_NAME}-im<wbr>age = &quot;${KERNEL_PACKAGE_NAME}-image-<wbr>${@<br>
legitimize_package_name(&#39;${KER<wbr>NEL_VERSION}&#39;)}&quot;<br>
+RDEPENDS_${KERNEL_PACKAGE_NAM<wbr>E}-image += &quot;${@base_conditional(&#39;KERNE<br>
L_IMAGETYPE&#39;, &#39;vmlinux&#39;, &#39;${KERNEL_PACKAGE_NAME}-vmlinu<wbr>x&#39;, &#39;&#39;, d)}&quot;<br>
+PKG_${KERNEL_PACKAGE_NAME}-ba<wbr>se = &quot;${KERNEL_PACKAGE_NAME}-${@leg<wbr>itim<br>
ize_package_name(&#39;${KERNEL_VER<wbr>SION}&#39;)}&quot;<br>
+RPROVIDES_${KERNEL_PACKAGE_NA<wbr>ME}-base += &quot;${KERNEL_PACKAGE_NAME}-<br>
${KERNEL_VERSION}&quot;<br>
+ALLOW_EMPTY_${KERNEL_PACKAGE_<wbr>NAME} = &quot;1&quot;<br>
+ALLOW_EMPTY_${KERNEL_PACKAGE_<wbr>NAME}-base = &quot;1&quot;<br>
+ALLOW_EMPTY_${KERNEL_PACKAGE_<wbr>NAME}-image = &quot;1&quot;<br>
+ALLOW_EMPTY_${KERNEL_PACKAGE_<wbr>NAME}-modules = &quot;1&quot;<br>
+DESCRIPTION_${KERNEL_PACKAGE_<wbr>NAME}-modules = &quot;Kernel modules meta<br>
package&quot;<br>
+<br>
+pkg_postinst_${KERNEL_PACKAGE<wbr>_NAME}-base () {<br>
        if [ ! -e &quot;$D/lib/modules/${KERNEL_VERSI<wbr>ON}&quot; ]; then<br>
                mkdir -p $D/lib/modules/${KERNEL_VERSIO<wbr>N}<br>
        fi<br>
@@ -543,7 +569,7 @@ pkg_postinst_kernel-base () {<br>
  PACKAGESPLITFUNCS_prepend = &quot;split_kernel_packages &quot;<br>
    python split_kernel_packages () {<br>
-    do_split_packages(d, root=&#39;${nonarch_base_libdir}/f<wbr>irmware&#39;,<br>
file_regex=&#39;^(.*)\.(bin|fw|cis<wbr>|csp|dsp)$&#39;, output_pattern=&#39;kernel-<br>
firmware-%s&#39;, description=&#39;Firmware for %s&#39;, recursive=True,<br>
extra_depends=&#39;&#39;)<br>
+    do_split_packages(d, root=&#39;${nonarch_base_libdir}/f<wbr>irmware&#39;,<br>
file_regex=&#39;^(.*)\.(bin|fw|cis<wbr>|csp|dsp)$&#39;,<br>
output_pattern=&#39;${KERNEL_PACKA<wbr>GE_NAME}-firmware-%s&#39;,<br>
description=&#39;Firmware for %s&#39;, recursive=True, extra_depends=&#39;&#39;)<br>
  }<br>
    # Many scripts want to look in arch/$arch/boot for the bootable<br>
@@ -626,21 +652,27 @@ MODULE_TARBALL_SYMLINK_NAME ?= &quot;modules-<br>
${MACHINE}.tgz&quot;<br>
  MODULE_TARBALL_DEPLOY ?= &quot;1&quot;<br>
    kernel_do_deploy() {<br>
+       deployDir=&quot;${DEPLOYDIR}&quot;<br>
+       if [ -n &quot;${KERNEL_DEPLOYSUBDIR}&quot; ]; then<br>
+               deployDir=&quot;${DEPLOYDIR}/${KER<wbr>NEL_DEPLOYSUBDIR}&quot;<br>
+               mkdir &quot;$deployDir&quot;<br>
+       fi<br>
+<br>
        for type in ${KERNEL_IMAGETYPES} ; do<br>
                base_name=${type}-${KERNEL_IMA<wbr>GE_BASE_NAME}<br>
-               install -m 0644 ${KERNEL_OUTPUT_DIR}/${type}<br>
${DEPLOYDIR}/${base_name}.bin<br>
+               install -m 0644 ${KERNEL_OUTPUT_DIR}/${type}<br>
$deployDir/${base_name}.bin<br>
        done<br>
        if [ ${MODULE_TARBALL_DEPLOY} = &quot;1&quot; ] &amp;&amp; (grep -q -i -e<br>
&#39;^CONFIG_MODULES=y$&#39; .config); then<br>
                mkdir -p ${D}/lib<br>
-               tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_<wbr>BASE_NAME}<br>
-C ${D} lib<br>
-               ln -sf ${MODULE_TARBALL_BASE_NAME}<br>
${DEPLOYDIR}/${MODULE_TARBALL_<wbr>SYMLINK_NAME}<br>
+               tar -cvzf $deployDir/${MODULE_TARBALL_BA<wbr>SE_NAME} -C<br>
${D} lib<br>
+               ln -sf ${MODULE_TARBALL_BASE_NAME}<br>
$deployDir/${MODULE_TARBALL_SY<wbr>MLINK_NAME}<br>
        fi<br>
        for type in ${KERNEL_IMAGETYPES} ; do<br>
                base_name=${type}-${KERNEL_IMA<wbr>GE_BASE_NAME}<br>
                symlink_name=${type}-${KERNEL_<wbr>IMAGE_SYMLINK_NAME}<br>
-               ln -sf ${base_name}.bin<br>
${DEPLOYDIR}/${symlink_name}.b<wbr>in<br>
-               ln -sf ${base_name}.bin ${DEPLOYDIR}/${type}<br>
+               ln -sf ${base_name}.bin<br>
$deployDir/${symlink_name}.bin<br>
+               ln -sf ${base_name}.bin $deployDir/${type}<br>
        done<br>
        cd ${B}<br>
@@ -650,8 +682,8 @@ kernel_do_deploy() {<br>
                        echo &quot;Copying deploy ${type} kernel-<br>
initramfs image and setting up links...&quot;<br>
                        initramfs_base_name=${type}-<br>
${INITRAMFS_BASE_NAME}<br>
                        initramfs_symlink_name=${type}<wbr>-initramfs-<br>
${MACHINE}<br>
-                       install -m 0644<br>
${KERNEL_OUTPUT_DIR}/${type}.i<wbr>nitramfs<br>
${DEPLOYDIR}/${initramfs_base_<wbr>name}.bin<br>
-                       ln -sf ${initramfs_base_name}.bin<br>
${DEPLOYDIR}/${initramfs_symli<wbr>nk_name}.bin<br>
+                       install -m 0644<br>
${KERNEL_OUTPUT_DIR}/${type}.i<wbr>nitramfs<br>
$deployDir/${initramfs_base_na<wbr>me}.bin<br>
+                       ln -sf ${initramfs_base_name}.bin<br>
$deployDir/${initramfs_symlink<wbr>_name}.bin<br>
                fi<br>
        done<br>
  }<br>
diff --git a/meta/conf/documentation.conf<br>
b/meta/conf/documentation.conf<br>
index a55e2836b5..2c88504fb9 100644<br>
--- a/meta/conf/documentation.conf<br>
+++ b/meta/conf/documentation.conf<br>
@@ -247,6 +247,7 @@ KERNEL_IMAGETYPE[doc] = &quot;The type of kernel to<br>
build for a device, usually set b<br>
  KERNEL_IMAGETYPES[doc] = &quot;The list of types of kernel to build for a<br>
device, usually set by the machine configuration files and defaults<br>
to KERNEL_IMAGETYPE.&quot;<br>
  KERNEL_MODULE_AUTOLOAD[doc] = &quot;Lists kernel modules that need to be<br>
auto-loaded during boot&quot;<br>
  KERNEL_MODULE_PROBECONF[doc] = &quot;Lists kernel modules for which the<br>
build system expects to find module_conf_* values that specify<br>
configuration for each of the modules&quot;<br>
+KERNEL_PACKAGE_NAME[doc] = &quot;Name prefix for kernel packages.<br>
Defaults to &#39;kernel&#39;.&quot;<br>
  KERNEL_PATH[doc] = &quot;The location of the kernel sources. This<br>
variable is set to the value of the STAGING_KERNEL_DIR within the<br>
module class (module.bbclass).&quot;<br>
  KERNEL_SRC[doc] = &quot;The location of the kernel sources. This variable<br>
is set to the value of the STAGING_KERNEL_DIR within the module class<br>
(module.bbclass).&quot;<br>
  KFEATURE_DESCRIPTION[doc] = &quot;Provides a short description of a<br>
configuration fragment. You use this variable in the .scc file that<br>
describes a configuration fragment file.&quot;<br>
diff --git a/meta/recipes-kernel/kmod/<a href="http://depmodwrapper-cross_1.0.bb" rel="noreferrer" target="_blank">dep<wbr>modwrapper-cross_1.0.bb</a><br>
b/meta/recipes-kernel/kmod/<a href="http://depmodwrapper-cross_1.0.bb" rel="noreferrer" target="_blank">dep<wbr>modwrapper-cross_1.0.bb</a><br>
index 44d013f29d..2eec921728 100644<br>
--- a/meta/recipes-kernel/kmod/<a href="http://depmodwrapper-cross_1.0.bb" rel="noreferrer" target="_blank">dep<wbr>modwrapper-cross_1.0.bb</a><br>
+++ b/meta/recipes-kernel/kmod/<a href="http://depmodwrapper-cross_1.0.bb" rel="noreferrer" target="_blank">dep<wbr>modwrapper-cross_1.0.bb</a><br>
@@ -23,17 +23,13 @@ if [ &quot;\$1&quot; != &quot;-a&quot; -o &quot;\$2&quot; != &quot;-b&quot; ]; then<br>
      echo &quot;Usage: depmodwrapper -a -b rootfs KERNEL_VERSION&quot; &gt;&amp;2<br>
      exit 1<br>
  fi<br>
-if [ ! -r ${PKGDATA_DIR}/kernel-depmod/k<wbr>ernel-abiversion ]; then<br>
-    echo &quot;Unable to read: ${PKGDATA_DIR}/kernel-depmod/k<wbr>ernel-<br>
abiversion&quot; &gt;&amp;2<br>
-else<br>
-    kernelabi=\$(cat ${PKGDATA_DIR}/kernel-depmod/k<wbr>ernel-abiversion)<br>
-    if [ &quot;\$kernelabi&quot; != &quot;\$4&quot; ]; then<br>
-        echo &quot;Error: Kernel version \$4 does not match kernel-<br>
abiversion (\$kernelabi)&quot; &gt;&amp;2<br>
-        exit 1<br>
-    fi<br>
+<br>
+kernelabi=&quot;&quot;<br>
+if [ -r &quot;${PKGDATA_DIR}/kernel-depmod/<wbr>kernel-abiversion&quot; ]; then<br>
+    kernelabi=\$(cat &quot;${PKGDATA_DIR}/kernel-depmod/<wbr>kernel-<br>
abiversion&quot;)<br>
  fi<br>
  -if [ ! -r ${PKGDATA_DIR}/kernel-depmod/S<wbr>ystem.map-\$4 ]; then<br>
+if [ ! -r ${PKGDATA_DIR}/kernel-depmod/S<wbr>ystem.map-\$4 ] || [<br>
&quot;\$kernelabi&quot; != &quot;\$4&quot; ]; then<br>
      echo &quot;Unable to read: ${PKGDATA_DIR}/kernel-depmod/S<wbr>ystem.map-<br>
\$4&quot; &gt;&amp;2<br>
      exec env depmod &quot;\$1&quot; &quot;\$2&quot; &quot;\$3&quot; &quot;\$4&quot;<br>
  else<br>
diff --git a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.10.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.10.bb</a><br>
b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.10.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.10.bb</a><br>
index f93d9530eb..894e2ffbf6 100644<br>
--- a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.10.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.10.bb</a><br>
+++ b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.10.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.10.bb</a><br>
@@ -7,7 +7,7 @@ require recipes-kernel/linux/linux-yoc<wbr>to.inc<br>
  # to build multiple virtual/kernel providers, e.g. as dependency of<br>
  # core-image-rt-sdk, core-image-rt.<br>
  python () {<br>
-    if d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-<br>
yocto-rt&quot;:<br>
+    if d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) == &quot;kernel&quot; and<br>
d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-yocto-rt&quot;:<br>
          raise bb.parse.SkipPackage(&quot;Set<br>
PREFERRED_PROVIDER_virtual/ker<wbr>nel to linux-yocto-rt to enable it&quot;)<br>
  }<br>
  diff --git a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.12.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.12.bb</a><br>
b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.12.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.12.bb</a><br>
index c49a9340f8..be4d163ff1 100644<br>
--- a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.12.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.12.bb</a><br>
+++ b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.12.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.12.bb</a><br>
@@ -7,7 +7,7 @@ require recipes-kernel/linux/linux-yoc<wbr>to.inc<br>
  # to build multiple virtual/kernel providers, e.g. as dependency of<br>
  # core-image-rt-sdk, core-image-rt.<br>
  python () {<br>
-    if d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-<br>
yocto-rt&quot;:<br>
+    if d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) == &quot;kernel&quot; and<br>
d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-yocto-rt&quot;:<br>
          raise bb.parse.SkipPackage(&quot;Set<br>
PREFERRED_PROVIDER_virtual/ker<wbr>nel to linux-yocto-rt to enable it&quot;)<br>
  }<br>
  diff --git a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.4.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.4.bb</a><br>
b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.4.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.4.bb</a><br>
index 25d88833a9..e489bbb9f2 100644<br>
--- a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.4.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.4.bb</a><br>
+++ b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.4.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.4.bb</a><br>
@@ -7,7 +7,7 @@ require recipes-kernel/linux/linux-yoc<wbr>to.inc<br>
  # to build multiple virtual/kernel providers, e.g. as dependency of<br>
  # core-image-rt-sdk, core-image-rt.<br>
  python () {<br>
-    if d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-<br>
yocto-rt&quot;:<br>
+    if d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) == &quot;kernel&quot; and<br>
d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-yocto-rt&quot;:<br>
          raise bb.parse.SkipPackage(&quot;Set<br>
PREFERRED_PROVIDER_virtual/ker<wbr>nel to linux-yocto-rt to enable it&quot;)<br>
  }<br>
  diff --git a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.9.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.9.bb</a><br>
b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.9.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.9.bb</a><br>
index 6734dc0d05..8212b1445c 100644<br>
--- a/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.9.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.9.bb</a><br>
+++ b/meta/recipes-kernel/linux/<a href="http://linux-yocto-rt_4.9.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto-rt_4.9.bb</a><br>
@@ -7,7 +7,7 @@ require recipes-kernel/linux/linux-yoc<wbr>to.inc<br>
  # to build multiple virtual/kernel providers, e.g. as dependency of<br>
  # core-image-rt-sdk, core-image-rt.<br>
  python () {<br>
-    if d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-<br>
yocto-rt&quot;:<br>
+    if d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) == &quot;kernel&quot; and<br>
d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) != &quot;linux-yocto-rt&quot;:<br>
          raise bb.parse.SkipPackage(&quot;Set<br>
PREFERRED_PROVIDER_virtual/ker<wbr>nel to linux-yocto-rt to enable it&quot;)<br>
  }<br>
  diff --git a/meta/recipes-kernel/linux/li<wbr>nux-yocto.inc<br>
b/meta/recipes-kernel/linux/li<wbr>nux-yocto.inc<br>
index 9c1f61be75..8a70eb5018 100644<br>
--- a/meta/recipes-kernel/linux/li<wbr>nux-yocto.inc<br>
+++ b/meta/recipes-kernel/linux/li<wbr>nux-yocto.inc<br>
@@ -12,7 +12,7 @@ INC_PR = &quot;r4&quot;<br>
  # PREFERRED_PROVIDER for virtual/kernel. This avoids network access<br>
required<br>
  # by the use of AUTOREV SRCREVs, which are the default for this<br>
recipe.<br>
  python () {<br>
-    if d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;) !=<br>
d.getVar(&quot;PN&quot;):<br>
+    if d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;<wbr>, True) == &quot;kernel&quot; and<br>
d.getVar(&quot;PREFERRED_PROVIDER_v<wbr>irtual/kernel&quot;, True) != d.getVar(&quot;PN&quot;,<br>
True):<br>
          d.delVar(&quot;BB_DONT_CACHE&quot;)<br>
          raise bb.parse.SkipPackage(&quot;Set<br>
PREFERRED_PROVIDER_virtual/ker<wbr>nel to %s to enable it&quot; %<br>
(d.getVar(&quot;PN&quot;)))<br>
  }<br>
-- <br>
2.14.2<br>
</div></div></blockquote></blockquote><div class="HOEnZb"><div class="h5">
-- <br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></div></blockquote></div><br></div>