feat: add tos.py cli command for build defs passing to idf SDK #467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR 描述/PR description
添加限定ESP32的命令idf于tos.py中。此命令调用idf.py于构建环境中,以期方便手工调节设定参数
代码质量/Code Quality:
在本次拉取请求中,我已考虑以下事项 As part of this pull request, I've considered the following:
本更改不包含任何C语言更改。所有更改存在于构建python脚本中。
此新功能仅限ESP32系列。
此工具对于目前issues中#436 https://github.com/tuya/TuyaOpen/issues/144等或有帮助
应用实例:
tos.py idf menuconfig
可以调用idf.py menuconfig以修改idf编译设定
此流程较以下显著方便:
TOP_DIR=/xxx/TuyaOpen/platform/ESP32
IDF_PATH=${TOP_DIR}/esp-idf
IDF_TOOLS_PATH=${TOP_DIR}/.espressif
export IDF_PATH
export IDF_TOOLS_PATH
. ${IDF_PATH}/export.sh
idf.py menuconfig