Re: Where does the 'PN' is set.


Biao <huanmateme@...>
 


At 2013-01-04 19:35:58,"Burton, Ross" <ross.burton@...> wrote: >On 4 January 2013 11:34, Bill Traynor <wmat@...> 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. 
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

Join yocto@lists.yoctoproject.org to automatically receive all group messages.