| Summary: |
toaster: import build directory fails if BBLAYERS contains variable reference |
| Product: |
[Build System, Metadata & Runtime] Toaster
|
Reporter: |
Paul Eggleton <bluelightning> |
| Component: |
toaster | Assignee: |
David Reyna <david.reyna> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
Toaster default assignee <toaster> |
| Severity: |
normal
|
|
|
| Priority: |
Medium+
|
CC: |
david.reyna, randy.macleod
|
| Version: |
3.0 | |
|
| Target Milestone: |
3.1 M4 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
New (Never tested)
|
|
Verified:
|
|
Documentation change:
|
Don't know
|
Try to import a build directory whose bblayers.conf sets BBLAYERS to a value that includes a variable reference e.g.: BBLAYERS = "${TOPDIR}/../meta \ ${TOPDIR}/../meta-selftest" The import code does not know how to handle this and throws a traceback as a literal "${TOPDIR}/../meta" path does not exist. Looking at buildimport.py, initially I thought the fix would be to properly parse the configuration files using bitbake's own code (e.g using tinfoil), but unfortunately that is not practical since we're not in the right context to invoke bitbake code, and even if we were the build directory may not actually be parseable by the version of bitbake that toaster is running with. (Perhaps this is something we can look at in future after some refactoring.) The more practical alternative at the moment is to teach the conf reading code how to (a) deal with variable references and (b) specifically about TOPDIR which is typically set by bitbake itself. I have a patch that does this and it appears to work.