Bug 4204 - PREFERRED_VERSION_linux-yocto does not override machine specific settings in poky.conf
Summary: PREFERRED_VERSION_linux-yocto does not override machine specific settings in ...
Status: VERIFIED NOTABUG
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-04 23:48 UTC by Song Liu
Modified: 2015-10-28 09:38 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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