feat(cli): support app-private esp-idf components + bump ESP32 platform - #627
Merged
yingtao450 merged 1 commit intoJul 6, 2026
Merged
Conversation
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>
shiliu-yang
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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: