Skip to content

feat(cli): support app-private esp-idf components + bump ESP32 platform - #627

Merged
yingtao450 merged 1 commit into
tuya:masterfrom
yingtao450:feat/esp32-app-private-components
Jul 6, 2026
Merged

feat(cli): support app-private esp-idf components + bump ESP32 platform#627
yingtao450 merged 1 commit into
tuya:masterfrom
yingtao450:feat/esp32-app-private-components

Conversation

@yingtao450

Copy link
Copy Markdown
Contributor

cli_build.py: when building for ESP32, expose <app_root>/esp_components to the platform build via the TUYAOS_EXTRA_COMPONENT_DIRS env var (consumed by platform/ESP32/tuya_open_sdk/CMakeLists.txt, which appends each root to EXTRA_COMPONENT_DIRS so every subdir becomes an esp-idf component). This is convention-over-configuration: an app just drops components under esp_components/ with no Kconfig or config key. Merges with any pre-exported value rather than overwriting, so CI/callers can add extra roots. Gated on the ESP32 platform.

platform_config.yaml: bump ESP32 pin to 012b6009 (TuyaOpen-esp32 master), which carries the matching TUYAOS_EXTRA_COMPONENT_DIRS consumer and the adapter include-dir glob.

PR 描述/PR description

[在此详细描述 PR 的内容]/[Describe the PR content in detail here]

代码质量/Code Quality:

在本次拉取请求中,我已考虑以下事项 As part of this pull request, I've considered the following:

  • 确保代码注释和文档清晰,并使用英文注释以保证代码可读性。Ensure that the code comments and documentation are clear, and use English for comments to ensure code readability.
  • 确保文件头遵循文件头格式。Ensure that the file header follows the File Header Format.
  • 确保函数头遵循 Doxygen 格式。Ensure that function headers follow the Doxygen format as specified in Comments.
  • 已查阅 编码风格指南,并核查代码风格合规性,包括缩进、空格、命名规范及其他风格要求。 Reviewed the Coding Style Guide and verified code style compliance, including indentation, spacing, naming conventions, and other style guidelines.
  • 已使用代码格式化工具确保符合 TuyaOpen 编码规范。Have used the code-formatting source code formatting tool to ensure compliance with TuyaOpen coding standards.

cli_build.py: when building for ESP32, expose <app_root>/esp_components to
the platform build via the TUYAOS_EXTRA_COMPONENT_DIRS env var (consumed by
platform/ESP32/tuya_open_sdk/CMakeLists.txt, which appends each root to
EXTRA_COMPONENT_DIRS so every subdir becomes an esp-idf component). This is
convention-over-configuration: an app just drops components under
esp_components/ with no Kconfig or config key. Merges with any pre-exported
value rather than overwriting, so CI/callers can add extra roots. Gated on
the ESP32 platform.

platform_config.yaml: bump ESP32 pin to 012b6009 (TuyaOpen-esp32 master),
which carries the matching TUYAOS_EXTRA_COMPONENT_DIRS consumer and the
adapter include-dir glob.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yingtao450
yingtao450 merged commit 98c84dc into tuya:master Jul 6, 2026
1 check passed
@yingtao450
yingtao450 deleted the feat/esp32-app-private-components branch July 24, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants