yocto - 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 ?
解决方案
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.
推荐阅读
- python - 如果字典中已经存在键,如何向它添加多个值(Python)
- docker - Docker 容器未在 docker stack deploy 覆盖上缩减(docker-ce 20.10.0)
- java - 为什么不能将 osgi 引用声明为静态数据类型?
- svg - 将 SVG 文件转换为 Autodesk Viewer svf 格式
- sql - DBT 是 SQL 管道的正确选择吗?
- react-native - 试图在本机反应中注册两个具有相同名称的 RNCWebview ERROR 视图
- javascript - 开关情况下的条件被忽略
- azure-pipelines - Azure DevOps YAML - 每个版本/分支概念的多个管道问题
- javascript - 如何使用 Fetch API 上传文件并包含 JSON 数据?
- flutter - 是否有替代 notifyListeners 的方法