Re: How to get name of output packages during build #bitbake #yocto


Khem Raj
 

On Wed, Jul 13, 2022 at 4:12 PM Ross Burton <ross.burton@...> wrote:

On 13 Jul 2022, at 14:40, simonblack.it via lists.yoctoproject.org <simonblack.it=yahoo.com@...> wrote:
Does yocto store all packages name that will be built from a recipe in a variable?
That *will* be built, no.

PACKAGES contains the packages which *can* be built, but also the do_package can create more. For example, it’s possible for a package which builds 20 plugins to dynamically create a package-per-plugin instead of the list being hardcoded.

If you want to know what packages a recipe created then you can use pkgdata. There is a tool to examine it:

$ oe-pkgdata-util list-pkgs —recipe glibc
glibc
glibc-dbg
glibc-dev
glibc-doc
glibc-extra-nss
glibc-pcprofile
glibc-src
glibc-staticdev
glibc-thread-db
glibc-utils
ldconfig
ldd
ldso
libmemusage
libnss-db
libsotruss
malloc-debug
nscd
sln
tzcode
this is nice. I mistook it for the dependencies

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