[yocto] Where does the 'PN' is set.

Biao huanmateme at 163.com
Fri Jan 4 22:28:55 PST 2013


At 2013-01-05 14:24:07,Biao <huanmateme at 163.com> wrote:


At 2013-01-04 19:35:58,"Burton, Ross" <ross.burton at intel.com> wrote:
>On 4 January 2013 11:34, Bill Traynor <wmat at alphatroop.com> wrote:
>>> I would like to know where does the so-called 'gather' exactly happens?
>>> For example, does it mean the bitbake core get the 'PN = u-boot' by
>>> cutting of the name of 'u-boot_2011.03.bb'?
>
>If you want to know exactly where it happens, see bitbake.conf:
>
>PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or
>'defaultpkgname'}"
>PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[1] or '1.0'}"
>PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[2] or 'r0'}"
Now i began to realize that my confusion seems due to a misunderstanding of the parsing procedure.
So the bitbake is NOT a ONE-TIME parsing file, it will be parsed again before parsing any bb file of the whole BBFILES set. 
Error recovery: So the bitbake.conf is NOT a ONE-TIME parsing file ...

step_1: parsing bitbake.conf, parsing pakage1.bb
step_2: parsing bitbake.conf, parsing pakage2.bb
step_n: parsing bitbake.conf, parsing pakagen.bb
Is that correct?
>
>Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130105/22ed0077/attachment.html>


More information about the yocto mailing list