Skip to content

Commit

Permalink
[ESP32] docs: install esptool for idf v5.x and above and disable "chi…
Browse files Browse the repository at this point in the history
…p_build_tests" by default (#27141)

* [ESP32] docs: install esptool for idf v5.x and above

* [ESP32] By default do not build chip tests

* Enable chip tests in qemu builds

* Fix the mispell check

* Try fixing build
  • Loading branch information
shubhamdp authored and pull[bot] committed Jan 29, 2024
1 parent bdee33f commit 5643921
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ menu "CHIP Core"

config BUILD_CHIP_TESTS
bool "Build CHIP tests"
default "y"
default n
help
Build CHIP test binaries.

Expand Down
11 changes: 11 additions & 0 deletions docs/guides/esp32/setup_idf_chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ source scripts/bootstrap.sh
Whenever Matter environment is out of date, it can be updated by running above
command.
In IDF v4.4.x, `esptool` is part of the esp-idf repository, but in IDF v5.x, it
is moved out as a Python package which can be installed using pip.
If you are using IDF v5.x or later, please install `esptool` using the command
below:
```
# Please make sure to run this command in the Matter Python environment
python3 -m pip install esptool
```
For MacOS, `gdbgui` python package will not be installed using `bootstrap.sh`
script as it is restricted only for x64 Linux platforms. It is restricted
because, building wheels for `gevent` (dependency of `gdbgui`) fails on MacOS.
Expand Down
3 changes: 3 additions & 0 deletions examples/all-clusters-app/esp32/sdkconfig_m5stack.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Build chip tests
CONFIG_BUILD_CHIP_TESTS=y
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Build chip tests
CONFIG_BUILD_CHIP_TESTS=y
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Build chip tests
CONFIG_BUILD_CHIP_TESTS=y
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Build chip tests
CONFIG_BUILD_CHIP_TESTS=y
3 changes: 3 additions & 0 deletions src/test_driver/esp32/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ CONFIG_BT_ENABLED=y

#enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Build chip tests
CONFIG_BUILD_CHIP_TESTS=y
3 changes: 3 additions & 0 deletions src/test_driver/esp32/sdkconfig_qemu.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ CONFIG_ESP_TASK_WDT=n

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Build chip tests
CONFIG_BUILD_CHIP_TESTS=y

0 comments on commit 5643921

Please sign in to comment.