Bitbake: how to list the whole recipe and add the files used in the image?

I use OpenEmbedded-Core and created a custom layer with priority 6. Months of development have passed, and now I want to increase the priority of my level to 8, because the append file from another level with priority 7 interferes with adding the file that I add to my layer.

My question is, how can I generate a list of recipes and .bbappend files used in the image?

I want to generate a list both before and after I make a priority change so that I can compare them (with reliable emphasis on diffftool) to see if any unexpected side effects have occurred, such as an important append file from another level is ignored potentially.

I am using the angstrom-v2014.12-yocto1.7 branch of the Angstrom distribution.

[EDIT]

Now I'm just curious to know how to specify which .bbappend files are actually using my image at the moment.

The list of packages can be viewed using "bitbake -g your-image-name", as suggested by @pnxs, or from the .manifest file (which I wanted to use), which in my case is under the deployment / Glibc / image / ImageName /. I initially asked how to create a list of recipe files, but I think that the list of packages is enough.

Regarding .bbappends, I had a case where my own .bbappend was ignored due to level priorities. I made changes to the priorities of my level and now I want to see if this caused any .bbappend files elsewhere in my image. As I understand it, using β€œbitbake-layers show-appends”, as suggested, displays all .bbappends, not just the ones that are actually used to create the image, so this does not do what I'm looking for.

+5
source share
3 answers

Try using "bitbake-layers show-appends" to find out which bbappends are being used. But this will only work with a prescription. But it can give you the information you need to understand your priorities.

+2
source

You can create "bitbake -g your-image-name" which creates some point files in the current directory.

The pn-depends.dot file contains a list of package names (pn) and dependencies between them.

When you take the first part of the file, where all the packages are listed, you see, for example:

"busybox" [label="busybox :1.23.1-r0.2\n/home/user/yocto/sources/poky/meta/recipes-core/busybox/busybox_1.23.1.bb"] "base-files" [label="base-files :3.0.14-r89\n/home/user/yocto/sources/poky/meta/recipes-core/base-files/base-files_3.0.14.bb"]

So, you have received a list of all the packages used by your image, and the corresponding recipe file.

To find out which of the recpies is extended by bbappend, you should get a list of bbappends with "bitbake-layers show-appends" and find additions to each recipe. You can write a small python program that can do this for you.

+2
source

Try the following command bitbake -g esomimx6-console -image && cat pn-depends.dot | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $ 1}' | sort | unique

0
source

Source: https://habr.com/ru/post/1232554/


All Articles