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

Bill Traynor wmat at alphatroop.com
Fri Jan 4 03:34:10 PST 2013


On Fri, Jan 4, 2013 at 1:53 AM, Biao <huanmateme at 163.com> 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,
> Biao
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130104/daec6e0b/attachment.html>


More information about the yocto mailing list