<?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>4928</bug_id>
          
          <creation_ts>2013-07-26 15:14:45 +0000</creation_ts>
          <short_desc>No documentation for UBOOT_MACHINE</short_desc>
          <delta_ts>2013-10-07 20:37:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>BSP Guide</product>
          <component>bsp-docs</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=228887f330f05037524e8982394a07cfd03d660b</bug_file_loc>
          <status_whiteboard>07 October 2013 - RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>dvhart</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34981</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-07-26 15:14:45 +0000</bug_when>
    <thetext>I have checked the reference and bsp guides, but nothing in there.

I was just getting this error message before I started to look for further information other than grepping other layers, like meta-yocto-bsp:

ERROR: Nothing PROVIDES &apos;u-boot&apos;
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: Required build target &apos;core-image-minimal&apos; has no buildable providers.
Missing or unbuildable dependency chain was: [&apos;core-image-minimal&apos;, &apos;u-boot&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34982</commentid>
    <comment_count>1</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-07-26 15:35:46 +0000</bug_when>
    <thetext>The documentation should mention that this variable holds the value that one would otherwise pass to make when building u-boot separately.

Here is the proof for that: ../meta/recipes-bsp/u-boot/u-boot.inc:43:       oe_runmake ${UBOOT_MACHINE}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34984</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-07-26 15:39:52 +0000</bug_when>
    <thetext>UBOOT_ENTRYPOINT and UBOOT_LOADADDRESS could be added to the BSP guide as well if we are at improving the uboot documentation. Those are simpler to understand, and hence document though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37429</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-01 14:44:26 +0000</bug_when>
    <thetext>Hi, 

Here is a first shot at describing UBOOT_MACHINE variable based on information I got from Paul.

UBOOT_MACHINE: Specifies the value passed on the make command line when building u-boot to indicate the target platform configuration. This variable is typically set from the machine configuration file (i.e. conf/machine/&lt;machinename&gt;.conf).

I don&apos;t have the information needed to add UBOOT_ENTRYPOINT and UBOOT_LOADADDRESS to the glossary as I do not know how to guide the user regarding setting these variables.  So if there is any information for these two variables I can then try and address them.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37431</commentid>
    <comment_count>4</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-01 14:53:43 +0000</bug_when>
    <thetext>Thanks; the last two variables are used for image creation with uboot. There is a util called &quot;uboot-mkimage&quot;, and those two variables are passed without any changes to that executable with the right command line parameters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37440</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-01 17:15:24 +0000</bug_when>
    <thetext>Hi, 

Here are some links for the new variables.  I tried to google some information on the entry point and load address information to get a little more substance but in the end just assumed people would understand these.

Please look this information over. 

Thanks, 
Scott

http://www.yoctoproject.org/docs/1.5/ref-manual/ref-manual.html#var-UBOOT_MACHINE

http://www.yoctoproject.org/docs/1.5/ref-manual/ref-manual.html#var-UBOOT_ENTRYPOINT

http://www.yoctoproject.org/docs/1.5/ref-manual/ref-manual.html#var-UBOOT_LOADADDRESS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37441</commentid>
    <comment_count>6</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-01 17:24:33 +0000</bug_when>
    <thetext>That is a good decision IMHO. They need to understand u-boot if they wanna use these variables. IMO, it is enough if Yocto only documents the Yocto related operation, i.e. variable is passed to the u-boot util.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37715</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-07 16:53:57 +0000</bug_when>
    <thetext>Hi, 

I am marking this one RESOLVED and changing the doc requirement to &quot;Done&quot;.  Have not heard anything additional for changes.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37716</commentid>
    <comment_count>8</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-07 16:56:08 +0000</bug_when>
    <thetext>Planned to mention (apparently forgot about it) that the UBOOT_TARGET documentation is missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37717</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-07 18:19:17 +0000</bug_when>
    <thetext>Laszlo, 

I will add that variable to the document.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37718</commentid>
    <comment_count>10</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-07 18:22:59 +0000</bug_when>
    <thetext>OK, it is basically the target that one can pass to u-boot for building, like SPL (second stage boot-loader), AIS (Texas Instruments wrapper script) related etc...

If the user does not pass anything, Yocto will pass &quot;all&quot; to the u-boot building process by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37719</commentid>
    <comment_count>11</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-07 18:33:31 +0000</bug_when>
    <thetext>Hi Laszlo, 

How does this sound?  

UBOOT_TARGET:

   Specifies the target you can pass to U-Boot for building (e.g. SPL and AIS).  The UBOOT_TARGET variable is passed as a command-line parameter to the uboot-mkimage utility.  If you do not pass this variable to the utility, the OpenEmbedded build process uses &quot;all&quot; for the U-Boot building process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37720</commentid>
    <comment_count>12</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-07 18:38:30 +0000</bug_when>
    <thetext>There is just one minor, otherwise good: the target is not passed to the mkimage utility (it is a bit different to the other variables), but directly to the &quot;make&quot; command when building u-boot itself.

I know you may not prefer seeing code, but just to clarify myself what I mean:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-bsp/u-boot/u-boot.inc#n31

there is the line &quot;oe_runmake ${UBOOT_MAKE_TARGET}&quot; in there. That line means when you build u-boot, it will build the target passed, or if nothing specified Yocto sets that to &quot;all&quot;, so u-boot will be built with the target &quot;all&quot; (whatever u-boot defines in its building for that).

Let me know if it is still unclear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37721</commentid>
    <comment_count>13</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-07 19:18:29 +0000</bug_when>
    <thetext>Laszlo, 

Thanks for the quick read and comments.  Here is &quot;round two&quot; - let me know if I am closer.

Thanks...

UBOOT_TARGET:

   Specifies the target used for building U-Boot.  The target is passed directly as part of the &quot;make&quot; command (e.g. SPL and AIS).  If you do not specifically set this variable, the OpenEmbedded build process passes and uses &quot;all&quot; for the target during the U-Boot building process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37722</commentid>
    <comment_count>14</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-07 19:30:58 +0000</bug_when>
    <thetext>Looks good to me. Thank you for your work; much appreciated!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37724</commentid>
    <comment_count>15</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-07 20:37:36 +0000</bug_when>
    <thetext>You are welcome Laszlo.  Thanks for helping me.

See http://www.yoctoproject.org/docs/1.5/ref-manual/ref-manual.html#var-UBOOT_TARGET for the final.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>