| Summary: | packages not reload correctly when changing Machine type | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Hob | Reporter: | Jiajun Xu <jiajun.xu> |
| Component: | hob | Assignee: | Joshua Lock - Disabled <josh> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, jiajun.xu, lianhao.lu, liping.ke, poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | 1.1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
| Bug Depends on: | 1249 | ||
| Bug Blocks: | |||
|
Description
Jiajun Xu
2011-07-24 05:32:52 UTC
I tried with latest master, for qemux86 and routerstationpro will always be 277 even after I restarted hob Fixed by http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ba3aef9b06c5fdb2b9cc5bf43915886f3fa313a7 I find with commit 46cf540e63a848512617b20fd8492f81bfb2f704, the issue still exists. So reopen the bug now. After some investigation it looks like the reparse is correct and the correct data is available but the way the previous selections are reloaded after changing machines is buggy. Or perhaps not, maybe the reparse isn't working correctly - work here is ongoing... I've root caused this at last. The problem is that we store the customisations from the UI in a post-file, that is; a configuration file which is parsed *after* all of the standard configuration files.
bitbake.conf includes the conf/machine/${MACHINE}.conf file before the post file is parsed and therefore there's a critical mismatch between which MACHINE is set in the GUI and which files are loaded.
The simplest solution is to switch to a prefile, parsed before bitbake.conf, to store the UI's settings. This may have other repercussions, however.
Long term we need to look at adding user-wide configuration and intercepting the data store initialisation to set configuration values, however this is an invasive change so for now is deferred for future work in bug 1441. Short term we need to switch to using a pre and post configuration file in tandem and add some less generic code to lib/bb/ui/crumbs/configurator.py to store the right variables in the right files. |