Re: Where does the 'PN' is set.


Biao <huanmateme@...>
 


在 2013-01-04 19:34:10,"Bill Traynor" <wmat@...> 写道:
On Fri, Jan 4, 2013 at 1:53 AM, Biao <huanmateme@...> wrote:
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'?

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.

Thanks for you kindly help. 



Thanks,
Biao 

_______________________________________________
yocto mailing list
yocto@...
https://lists.yoctoproject.org/listinfo/yocto


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