yocto

How to Debug Yocto Packages (oe-pkgdata-util)

chanbae 2024. 11. 21. 08:37

There are a variety of tools under the scripts directory in Poky, Yocto's reference. In this article, we'll see how to use the oe-pkgdata-util script to simply debug a package.

 

Here is an example of what options are available as a result of using the help command.

 

  • In this article, I'll walk you through the following commonly used commands and explain them briefly.
  • list-pkgs: Print a list of packages. Combine with the grep command to find a list of packages for a specific recipe.
  • list-pkg-files: Output a list of files in a package.
  • find-path: Search for package names by filename. You must also provide a directory path to find it.
  • package-info: Print package version information

 

This is the result of a simple test on the current master branch of yocto using a curl recipe as an example. You don't need to compile the whole thing, just parse the recipe to get the results.

I will continue to write about the commands in poky's scripts directory one by one.