Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto determine what recipe a file came from

How can I find what recipe a source file from the build/tmp/work directory came from? Normally, most of the recipes in the source folder have URI statements inside. The URIs get downloaded and installed to various temp folders. I want to create a patch for some of the files, but I'm having trouble determining which files belong to which recipes.

like image 915
noone392 Avatar asked Oct 24 '25 19:10

noone392


1 Answers

Run oe-pkgdata-util find-path /path/on/target/to/file. This will give you the package installing the file. From there, run oe-pkgdata-util lookup-recipe <pkg-name>, this will give you which recipe is creating the package. That should be enough to find out which recipe you need to modify. You then need to check whether the file you want to modify is part of the recipe (Yocto artifact) or part of the software that the recipe builds. For the former, you can override the file, for the latter, you can create a patch (you can use devtool to help you create the patch).

like image 158
qschulz Avatar answered Oct 27 '25 01:10

qschulz