Bug 2086

Summary: Rewrite bbvars.py to use bitbake to find variables
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Darren Hart <dvhart>
Component: meta-yoctoAssignee: Amanda Brindle <amanda.r.brindle>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: bluelightning, mhalstead, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: unspecified   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Darren Hart 2012-03-13 16:13:06 UTC
Difficulty: Hard
Estimate: 3 Days
Submitter: dvhart

bbvars.py does a rather dumb regex search for things vaguely resembling variables, the bitbake parser knows how to do this properly. 

Example use of bbvars:


$ scripts/contrib/bbvars.py -d documentation/poky-ref-manual/poky-ref-manual.xml -t meta/conf/documentation.conf -m meta
Comment 1 Paul Eggleton 2017-06-08 06:31:18 UTC
These days you would use tinfoil to do this. Here's some introductory material:

https://wiki.yoctoproject.org/wiki/TipsAndTricks/Tinfoil
Comment 2 Paul Eggleton 2017-09-11 21:35:29 UTC
In the above example I believe the path to the XML file these days should be documentation/ref-manual/ref-variables.xml .