I work with Yocto Project quite a bit, and a common problem is to determine why (or from which recipe) the file was included in rootfs. This is what you can hopefully get from the build system environment, logs, and metadata. Ideally, a set of commands will allow you to link the file to the source code (i.e. Recipe).
My usual strategy is to search metadata (for example, grep -R filename ../layers/* ) and search the Internet for the specified file names to find hints for possible recipes. However, this is not always very effective. In many cases, file names are not explicitly specified in the recipe. In addition, there are many cases where a file name is provided by several recipes, which leads to additional work to find which recipe ultimately provided it. Of course, there are many other tips available for finding the answer. Despite this, this investigation is often very time-consuming when it seems that the build system should have enough information to simplify the solution.
linux embedded-linux openembedded bitbake yocto
shibley
source share