Bug 4204

Summary: PREFERRED_VERSION_linux-yocto does not override machine specific settings in poky.conf
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Song Liu <song.liu>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED NOTABUG QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Undecided CC: bogdanx.a.voiculescu, poky.bs.watcher, poky.watcher, Qi.Chen
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Song Liu 2013-04-04 23:48:57 UTC
Set this in local.conf:

PREFERRED_VERSION_linux-yocto = "3.4%"

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'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 #     "3.4%"
 4464 #   set? /home/liusong/yocto/beta/meta-yocto/conf/distro/poky.conf:17
 4465 #     "3.4%"
 4466 #   finalize ast.py:331 [finalize]
 4467 #     "was: 3.4%"
 4468 #   override[qemux86]:set? /home/liusong/yocto/beta/meta-yocto/conf/distro/poky.conf:18
 4469 #     "3.8%"
 4470 #   finalize override[qemux86]:
 4471 #     "3.8%"
 4472 # computed:
 4473 #   "3.8%"
 4474 PREFERRED_VERSION_linux-yocto="3.8%"
Comment 1 Chen Qi 2013-04-08 07:22:38 UTC
Notice the 'override' message in your log.
"
4468 #   override[qemux86]:set? /home/liusong/yocto/beta/meta-yocto/conf/distro/poky.conf:18
 4469 #     "3.8%"
 4470 #   finalize override[qemux86]:
 4471 #     "3.8%"
"

What about using PREFERRED_VERSION_linux-yocto_qemux86 = "3.4%" ?


//Chen Qi
Comment 2 Richard Purdie 2013-04-08 14:30:51 UTC
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 = "3.4%"
Comment 3 Bogdan Alexandru Voiculescu 2015-10-28 09:38:14 UTC
Verified as not a bug; I filled a separated bug for updating the documentation: how to easily change the kernel version: Bug 8595