简体   繁体   English

yocto bitbake:使用python命令行选项运行bitbake python任务

[英]yocto bitbake: running bitbake python task with python command line options

Is there a way to run bitbake task with python command line options ? 有没有一种方法可以使用python命令行选项运行bitbake任务? Example: I have debug in the code, and the debug is always True, is there a way to pass an python option like python -O when executing bitbake task. 例如:我在代码调试调试始终是真实的,有没有办法bitbake的执行任务时传似蟒-O的蟒蛇选项。

python do_some_task(){
    if __debug__:
        print("...")
    ...
  }
addtask do_some_task

I'm running my task's in the following way: 我以以下方式运行任务:

bitbake -c some_task ...

No. Python tasks are eval/exec by the worker directly, not by spawning a new instance of python. 否。Python任务是由工作人员直接执行eval / exec的,而不是通过生成新的python实例来执行。

For debugging can't you just use bb.debug() and read the task logs, which is where debug output goes? 对于调试,您不能只使用bb.debug()并读取任务日志,调试输出在哪里?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Yocto bitbake中设置autotools的python dist-packages路径 - Set python dist-packages path for autotools in Yocto bitbake 用于 Nvidia Jetson Nano 的 Yocto Bitbake Recipes for Python whl 文件不在 PyPi 上 - Yocto Bitbake Recipes for Nvidia Jetson Nano for Python whl files not on PyPi 用Python编写的Yocto食谱在尝试使用Bitbake进行构建时给我一个错误 - Yocto recipe written in python giving me an error when trying to build with Bitbake 无法安装用于自定义 Python Wheel 文件的 Yocto Warrior 自定义 Bitbake 配方,因为找不到 pip3 - Yocto Warrior Custom Bitbake Recipe for Custom Python Wheel file cannot install because pip3 not found 如何在yocto构建期间从bitbake bb文件执行python脚本 - How to execute python script from bitbake bb file during yocto build yocto/bitbake 配方中“__anonymous”函数的含义是什么? - What is the meaning of '__anonymous' function in a yocto/bitbake recipe? 适用于Python3存储库的Bitbake食谱,提供CLI作为二进制文件 - Bitbake Recipe for a python3 repository that provides a CLI as a binary “源”将PATH设置为shell = True在Python中无效 - “source” to set PATH to bitbake with shell=True having no effect in Python 我应该如何配置BitBake来交叉编译我的python模块? - How should I configure BitBake to cross compile my python module? 如何使用命令行选项的每种组合自动运行python代码 - How to automate running python code with every combination of command line options
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM