How to list all the .bb and .bbappend files used to create a specific package with beatbox?

Consider the "virtual / kernel" package. I would like to know which .bb and .bbappend files are involved in making this package.

I know that I can get the package name via:

bitbake -e virtual / kernel | grep ^ BP =

This command gives me the name of the package used to build the virtual / core, which is in my case linux-fslc-4.0+gitAUTOINC+19ebefd40a

. However, I don't know how to get a list of the .bb and .bbappend files (with their location) used to build the package linux-fslc-4.0+gitAUTOINC+19ebefd40a

.

+3


source to share


2 answers


First of all, you should be aware that there are potentially many tens of files in a single package, and this is especially true for building a complex package like the Linux kernel.

You can get a lot more information if you pipe the output of "bitback -e foo" into a file and then parse its contents. Something like

$ bitbake -e virtual/kernel >kernel.env

      

For example, early in the output, you can find the include list in the form of a beatbox scan and reads the class file chain. Also very helpful, although not directly related to the question, is that you can see the cumulative changes made to variables as they involve reading and parsing files.



If you isolate the lines that define the variables, you can effectively create a list of the files involved in creating the package. Something like that:

$ cat kernel.env | egrep '^#[ ]*append|^#[ ]*set' | cut -d ':' -f 1 | awk '{print $3}' | sort | uniq

      

... should create a list of bitback files (* .conf, * .bb, * .bbclass, etc.) that will not be created when the package is created. Ugly but it works;)

You might also consider joining #oe and #yocto to IRC-freenode, where a lot of really smart people hang out who know a lot more about it than I do! Good luck.

+5


source


you can use

bitbake-layers show-appends

      



List all recipes extended with .bbappend files. It will indicate the priority and location of all such files.

+3


source







All Articles