<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6043</bug_id>
          
          <creation_ts>2014-03-25 16:35:43 +0000</creation_ts>
          <short_desc>Deploy images collide across kernel recipes</short_desc>
          <delta_ts>2021-04-08 15:19:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>jacob.kroon</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41712</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-25 16:35:43 +0000</bug_when>
    <thetext>Building multiple kernel recipes has a number of issues related to overwriting existing files. The deploy targets are one such example. Each kernel.bbclass recipe wants to deploy to bzimage and bzimage-machinename. While these are symlinks, their targets also only include version information, which could potentially be the same across recipes as well.

I propose we include the PN in the deploy target:

bzImage_linux-yocto
bzImage_linux-yocto-rt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41932</commentid>
    <comment_count>1</comment_count>
    <who name="Jacob Kroon">jacob.kroon</who>
    <bug_when>2014-03-31 07:08:00 +0000</bug_when>
    <thetext>Maybe this bug is related to what I&apos;m seeing. I&apos;m jumping between building two kernels, &quot;linux-imx&quot; and &quot;linux-imx-rt&quot;.

I have two kernel ipks under deploy/ipk/:

[jkroon@localhost oe-devel]$ ls build/tmp-eglibc/deploy/ipk/wandboard_dual/kernel-3*
build/tmp-eglibc/deploy/ipk/wandboard_dual/kernel-3.10.17-monkey+gec1af9f_3.10.17-r0_wandboard_dual.ipk
build/tmp-eglibc/deploy/ipk/wandboard_dual/kernel-3.10.17-rt12-monkey+gec1af9f_3.10.17-r0_wandboard_dual.ipk

Even when I have PREFERRED_PROVIDER_virtual/kernel = &quot;linux-imx-rt&quot; I get:

[jkroon@localhost oe-devel]$ cat build/buildhistory/images/wandboard_dual/eglibc/core-image-monkey/installed-packages.txt | grep kernel-3
kernel-3.10.17-monkey+gec1af9f_3.10.17-r0_wandboard_dual.ipk

, it picks the non-rt kernel for the rootfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41983</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-31 19:33:33 +0000</bug_when>
    <thetext>That is more of a packaging issue, and there are many more issues within the system with respect to working with multiple kernels in the same build tree. If you clean the kernel, then change the provider, and build - do you still see this issue? (But this is a separate issue from the one described in this bug)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41984</commentid>
    <comment_count>3</comment_count>
    <who name="Jacob Kroon">jacob.kroon</who>
    <bug_when>2014-03-31 20:02:47 +0000</bug_when>
    <thetext>Yes, cleaning sstate for the old kernel, and then building the image with the new kernel as preferred provider works as expected. I was just suprised when it happened, and searching for &quot;multiple kernel&quot; in bugzilla, this bug looked like the best match. But maybe I should file a new bug then ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41985</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-31 20:17:07 +0000</bug_when>
    <thetext>Your bug is more generic than you might think. Consider Bug 4102.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89906</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-08 15:19:48 +0000</bug_when>
    <thetext>Automatic invaldid sstate remove means this no longer happens.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>