<?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>1962</bug_id>
          
          <creation_ts>2012-02-06 11:59:03 +0000</creation_ts>
          <short_desc>Ensure BSP developer guide recommends appropriate techniques to ensure MACHINE specific changes are packages thus</short_desc>
          <delta_ts>2012-04-18 12:07:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Quick Start</product>
          <component>quick-start</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=f5e51d60312d9335a790023f193cae1ba76277ae</bug_file_loc>
          <status_whiteboard>17-april-2012: verified/fixed </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock - Disabled">josh</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>msm-oss</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</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>18511</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-02-06 11:59:03 +0000</bug_when>
    <thetext>Whilst reviewing a recent BSP submission I noticed that the netbase customisation was making a MACHINE specific change but wasn&apos;t marked as thus.

Therefore, should a user have the layer enabled but build for a different BSP of the same architecture they could still end up with the netbase changes.

The base.bbclass includes a mechanism to try and ensure that MACHINE specific changes generate MACHINE specific packages.

If a file is fetched from a directory named for the MACHINE[1] i.e.:
meta-mymachine/recipes-core/netbase/files/mymachine/interfaces

See [2] for a real world example.

We need to ensure that these subtleties are documented in the BSP manual, and also be aware of them when reviewing BSP&apos;s for inclusion.

1. http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/base.bbclass#n459
2. http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/tree/recipes-core/netbase/netbase-4.47/beagleboard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19828</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-03 17:38:56 +0000</bug_when>
    <thetext>Do, the BSP developer guide should have a blurb as follows:

When customizing a recipe for a particular BSP, such as adding a BSP specific configuration file, a bbappend for the recipe should be included in the BSP layer and the BSP specific file should be placed in a directory of the same name as the MACHINE defined by the BSP layer. For example, to change the interfaces file for the netbase recipe for machine &quot;xyz&quot; the new interfaces file should be placed as follows:

  meta-xyz/recipes-core/netbase/files/xyz/interfaces

  And the bbappend should contain:

  $ cat meta-xyz/recipes-core/netbase/netbase_4.47.bbappend 
  FILESEXTRAPATHS_prepend := &quot;${THISDIR}/files:&quot;
  PRINC := &quot;${@int(PRINC) + 2}&quot;


Correct Joshua?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19886</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-04 17:48:51 +0000</bug_when>
    <thetext>Looks OK to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19888</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-04 17:53:11 +0000</bug_when>
    <thetext>Great, assigning to Scott to integrate the changes.

Scott, can you accept this bug and pull in the changes from comment 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19896</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-04 18:55:22 +0000</bug_when>
    <thetext>Darren, 

I will implement this fix.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19900</commentid>
    <comment_count>5</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-04-04 19:08:09 +0000</bug_when>
    <thetext>It would be nice to have a net-tools_*bbappend example which shows static configuring a network interface.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19905</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-04 21:04:02 +0000</bug_when>
    <thetext>New section added called &quot;Customizing a Recipe for a BSP&quot;.  The section is based on Darren&apos;s Comment #1.  

Can be seen at http://www.yoctoproject.org/docs/latest/bsp-guide/bsp-guide.html#customizing-a-recipe-for-a-bsp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19907</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-04 21:07:11 +0000</bug_when>
    <thetext>If we want something on net-tools_*bbappend example which shows static
configuring a network interface, then I will need more information.  Also, would this fit just as a second example in the new section I created?  I marked this bug resolved.  If we do want to add another example based on Matthew&apos;s suggestion the bug can be re-opened.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19909</commentid>
    <comment_count>8</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-04-04 21:27:44 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; If we want something on net-tools_*bbappend example which shows static
&gt; configuring a network interface, then I will need more information.  Also,
&gt; would this fit just as a second example in the new section I created?  I marked
&gt; this bug resolved.  If we do want to add another example based on Matthew&apos;s
&gt; suggestion the bug can be re-opened.
&gt; 
&gt; Scott

I&apos;ll look at writing a patch to add a net-tools example at some point.

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19910</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-04 21:29:36 +0000</bug_when>
    <thetext>This sounds like a plan Matt... thanks.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20603</commentid>
    <comment_count>10</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-18 00:43:16 +0000</bug_when>
    <thetext>Verify manual section added</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20643</commentid>
    <comment_count>11</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-18 12:07:28 +0000</bug_when>
    <thetext>I changed the whiteboard comment to reflect the bug as verified/fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>