<?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>13172</bug_id>
          
          <creation_ts>2019-02-05 20:59:45 +0000</creation_ts>
          <short_desc>Kernels with non-standard names don&apos;t provide virtual/kernel</short_desc>
          <delta_ts>2021-11-11 13:17:16 +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>0.0.0</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>normal</bug_severity>
          <target_milestone>4.0 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82964</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-02-05 20:59:45 +0000</bug_when>
    <thetext>We let kernel recipes name their packages something unique:

kernel.bbclasss:
KERNEL_PACKAGE_NAME ??= &quot;kernel&quot;

But if the name isn&apos;t &quot;kernel&quot; then they don&apos;t provide virtual/kernel, so can&apos;t be really be used if all of the valid kernels have a name set:

kernel.bbclasss:
PROVIDES += &quot;${@ &quot;virtual/kernel&quot; if (d.getVar(&quot;KERNEL_PACKAGE_NAME&quot;) == &quot;kernel&quot;) else &quot;&quot; }&quot;

I believe that line should just be PROVIDES += &quot;virtual/kernel&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82966</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-02-07 15:48:14 +0000</bug_when>
    <thetext>This is to allow multiple kernels to be built reusing the class code. We don&apos;t want two kernels to PROVIDE virtual/kernel so I&apos;d say this is not a bug...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83881</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2019-05-22 20:53:00 +0000</bug_when>
    <thetext>We should decide on this in 2.8. Is it a bug or not. Having just been through all this code myself, I&apos;m also inclined to say not a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88664</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2020-11-23 18:09:07 +0000</bug_when>
    <thetext>Will start running tests with the simplest of changes and see if anything breaks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91953</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2021-11-11 13:17:16 +0000</bug_when>
    <thetext>merged to oe-core (now we wait to see if some unaccounted for case fails).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>