Date
1 - 6 of 6
Where does the 'PN' is set.
Biao <huanmateme@...>
Hi, In meta/conf/documentation.conf PN[doc] = "PN holds the name of the package (Package Name). It is gathered from the bitbake-file filename"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'? Thanks, Biao
|
|
Bill Traynor <wmat@...>
On Fri, Jan 4, 2013 at 1:53 AM, Biao <huanmateme@...> wrote:
Yes, within the context of the build process, PN refers to the Package Name that is extracted from the recipe file name. So your example is correct. For reference, see the PN variable description in the Yocto Project Reference manual: http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#var-P
The "gathering" occurs during the Bitbake parsing step. Roughly, parsing occurs in the following order: configuration files, classes, bbfiles.
|
|
Burton, Ross <ross.burton@...>
On 4 January 2013 11:34, Bill Traynor <wmat@...> wrote:
If you want to know exactly where it happens, see bitbake.conf:I would like to know where does the so-called 'gather' exactly happens? 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'}" Ross
|
|
Biao <huanmateme@...>
在 2013-01-04 19:34:10,"Bill Traynor" <wmat@...> 写道: Thanks for you kindly help.
|
|
Biao <huanmateme@...>
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
|
|
Biao <huanmateme@...>
At 2013-01-05 14:24:07,Biao <huanmateme@...> wrote: Error recovery: So the bitbake.conf is NOT a ONE-TIME parsing file ...
|
|