<?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>2046</bug_id>
          
          <creation_ts>2012-03-01 22:10:15 +0000</creation_ts>
          <short_desc>Make KBRANCH default to a valid branch (not KMACHINE)</short_desc>
          <delta_ts>2012-06-14 17:45:03 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(Development)Mostly done, needs to be verified and closed.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>song.liu</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18830</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-01 22:10:15 +0000</bug_when>
    <thetext>The current linux-yocto* recipes use a trick to define the KMACHINE and the KBRANCH together by specifying the branch in KMACHINE, and allowing the kernel tools to deduce the rest.

This results in forcing every bbappend to define the KBRANCH in addition to the KMACHINE (or also reusing the magic path as a KMACHINE).

Instead, bbappend writers shouldn&apos;t need to do anything more than define the KMACHINE in it&apos;s purest form, for example:

KMACHINE=&quot;fri2&quot;

In order for this to work, the default KBRANCH from linux-yocto_3.0.bb (for example) needs to be:

KBRANCH=&quot;yocto/standard/base&quot;

and not:

KBANCH=&quot;${KMACHINE}&quot;

which would result in KBRANCH=&quot;fri2&quot; and the do_validate_branch() task will fail (as fri2 is not a branch).

This is a rather invasive change which impacts every BSP. This needs to be done early in a release phase, marking for 1.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20080</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-09 19:51:41 +0000</bug_when>
    <thetext>This should have been marked for 1.3, not 1.2. Bruce, iirc, this is already the case for the 3.3 development recipes / repository. Do I have that right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20099</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-04-10 04:29:44 +0000</bug_when>
    <thetext>Correct. This is already done in the new tools and pending recipes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21412</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-17 16:32:42 +0000</bug_when>
    <thetext>Bruce, you&apos;ve done the work here and are driving things, so I&apos;m assigning to you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22204</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-14 16:39:58 +0000</bug_when>
    <thetext>For linux-yocto_3.4 this is now:
KBRANCH = &quot;standard/base&quot;

linux-yocto_3.2 is now:
KBRANCH = &quot;standard/default/base&quot;

linux-yocto_3.0 is now:
KBRANCH = &quot;yocto/standard/base&quot;

linux-yocto-tiny_3.2 is now:
KBRANCH = &quot;standard/tiny&quot;

linux-yocto-rt_3.2 is now:
KBRANCH = &quot;standard/preempt-rt/base&quot;

linux-yocto-rt_3.0 is now:
KBRANCH = &quot;yocto/standard/preempt-rt/base&quot;


These are all correct.

Bruce, this looks fixed to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22210</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-06-14 17:45:03 +0000</bug_when>
    <thetext>ack&apos;d. This one is done. verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>