<?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>4204</bug_id>
          
          <creation_ts>2013-04-04 23:48:57 +0000</creation_ts>
          <short_desc>PREFERRED_VERSION_linux-yocto does not override machine specific settings in poky.conf</short_desc>
          <delta_ts>2015-10-28 09:38:14 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Song Liu">song.liu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>31582</commentid>
    <comment_count>0</comment_count>
    <who name="Song Liu">song.liu</who>
    <bug_when>2013-04-04 23:48:57 +0000</bug_when>
    <thetext>Set this in local.conf:

PREFERRED_VERSION_linux-yocto = &quot;3.4%&quot;

to build a qemux86 image with 3.4 kernel. But the machine specific settings in poky.conf overrides this and continue building 3.8 kernel.

As a user I think the generic settings in local.conf reflects the user&apos;s intent and should have the highest priority. 


 4461 # $PREFERRED_VERSION_linux-yocto [5 operations]
 4462 #   set /home/liusong/yocto/yp-beta-build/conf/local.conf:249
 4463 #     &quot;3.4%&quot;
 4464 #   set? /home/liusong/yocto/beta/meta-yocto/conf/distro/poky.conf:17
 4465 #     &quot;3.4%&quot;
 4466 #   finalize ast.py:331 [finalize]
 4467 #     &quot;was: 3.4%&quot;
 4468 #   override[qemux86]:set? /home/liusong/yocto/beta/meta-yocto/conf/distro/poky.conf:18
 4469 #     &quot;3.8%&quot;
 4470 #   finalize override[qemux86]:
 4471 #     &quot;3.8%&quot;
 4472 # computed:
 4473 #   &quot;3.8%&quot;
 4474 PREFERRED_VERSION_linux-yocto=&quot;3.8%&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31650</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-04-08 07:22:38 +0000</bug_when>
    <thetext>Notice the &apos;override&apos; message in your log.
&quot;
4468 #   override[qemux86]:set? /home/liusong/yocto/beta/meta-yocto/conf/distro/poky.conf:18
 4469 #     &quot;3.8%&quot;
 4470 #   finalize override[qemux86]:
 4471 #     &quot;3.8%&quot;
&quot;

What about using PREFERRED_VERSION_linux-yocto_qemux86 = &quot;3.4%&quot; ?


//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31688</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-08 14:30:51 +0000</bug_when>
    <thetext>This is working as designed, even if it is not intuative. As Chen points out, you can use a machine override to force this, or you can use the forcevariable override which wins over all others:

PREFERRED_VERSION_linux-yocto_forcevariable = &quot;3.4%&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55881</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-28 09:38:14 +0000</bug_when>
    <thetext>Verified as not a bug; I filled a separated bug for updating the documentation: how to easily change the kernel version: Bug 8595</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>