首页 > 解决方案 > Is there a command to got to WORDIR of a recipe?

问题描述

So while working on a couple of recipes, sometimes I need to go to the WORKDIR of a recipe to make sure if it is doing what is supposed to. I know there is :

bitbake myrecipe -c devshell

but this blocks bitbake and while the new shell is running , i can't test or experiment on other recipes.

is there a command to simply cd to the WORKDIR of a recipe ?

标签: yoctobitbake

解决方案


cd bitbake myrecipe -e | grep ^WORKDIR= | cut -d '"' -f 2

bitbake myrecipe -e shows you the variables set in that recipe context, the rest of the shell extracts the directory.


推荐阅读