<?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>4965</bug_id>
          
          <creation_ts>2013-07-31 11:24:42 +0000</creation_ts>
          <short_desc>Not possible to pass the preferred version to bitbake on the command line</short_desc>
          <delta_ts>2017-08-17 15:20:23 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35208</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-07-31 11:24:42 +0000</bug_when>
    <thetext>It would be nice to have this feature for experimenting, at least, around.

u-boot is getting several versions, and it would be simpler to test a different version in case of tracking buys and so forth rather than modifying the config file, and then modifying it back.

If one uses the -b option for absolute path to the recipe, then it will not handle the dependencies automatically.

If it is already possible, then document it, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35244</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-01 06:35:40 +0000</bug_when>
    <thetext>Thanks for the report.

One can use the PREFERRED_VERSION_u-boot = &quot;&lt;version&gt;&quot; in your local.conf file, I believe the variable is documented in the manual.  We use this method for the compiler and eglibc, and they are set in the distro/include/tcmode-default.inc or distro/include/default-versions.  So examples exist.

Is that information sufficient?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35247</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-08-01 06:43:44 +0000</bug_when>
    <thetext>local.conf != command line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36015</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-08-29 03:27:19 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; It would be nice to have this feature for experimenting, at least, around.
&gt; 
&gt; u-boot is getting several versions, and it would be simpler to test a
&gt; different version in case of tracking buys and so forth rather than
&gt; modifying the config file, and then modifying it back.
&gt; 
&gt; If one uses the -b option for absolute path to the recipe, then it will not
&gt; handle the dependencies automatically.
&gt; 

I think that you can use &quot;bitbake uboot-&lt;version&gt;&quot; .

&gt; If it is already possible, then document it, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36573</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-12 02:23:42 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #0)
&gt; &gt; It would be nice to have this feature for experimenting, at least, around.
&gt; &gt; 
&gt; &gt; u-boot is getting several versions, and it would be simpler to test a
&gt; &gt; different version in case of tracking buys and so forth rather than
&gt; &gt; modifying the config file, and then modifying it back.
&gt; &gt; 
&gt; &gt; If one uses the -b option for absolute path to the recipe, then it will not
&gt; &gt; handle the dependencies automatically.
&gt; &gt; 
&gt; 
&gt; I think that you can use &quot;bitbake uboot-&lt;version&gt;&quot; .
&gt; 

Now, we can&apos;t use the bitbake uboot-&lt;version&gt;, but you can set BB_PRESERVE_ENV=1 and then set PREFERRED_VERSION_xxx from the environment.

There is one other problem, you can&apos;t use &quot;-&quot; in a shell environment variable so you can&apos;t do:

PREFERRED_VERSION_make-native = xxx

which is annoying. We might want to add some kind of mangling mechanism
like a double underscore translating to a dash or something...

Cheers,

Richard

We will go on working on it in 1.6

&gt; &gt; If it is already possible, then document it, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75957</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-08-17 15:20:23 +0000</bug_when>
    <thetext>I don&apos;t think this is worth doing, particularly given the complexities of invalid chars in the environment variable names. No action in a long time so closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>