Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32: Enable CONFIG_BUILD_FOR_HOST_UNIT_TEST when building CHIP test binaries #32959

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions examples/all-clusters-app/esp32/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ menu "Demo"
depends on IDF_TARGET_ESP32H2
endchoice

config CHIP_PROJECT_CONFIG
string "CHIP Project Configuration file"
default "main/include/CHIPProjectConfig.h"

choice
prompt "Rendezvous Mode"
default RENDEZVOUS_MODE_BLE if BT_ENABLED
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ menu "Demo"
depends on IDF_TARGET_ESP32C2
endchoice

config CHIP_PROJECT_CONFIG
string "CHIP Project Configuration file"
default "main/include/CHIPProjectConfig.h"

choice
prompt "Rendezvous Mode"
default RENDEZVOUS_MODE_BLE if BT_ENABLED
Expand Down

This file was deleted.

6 changes: 6 additions & 0 deletions src/platform/ESP32/CHIPPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@
#ifdef CONFIG_CHIP_ENABLE_BDX_LOG_TRANSFER
#define CHIP_CONFIG_ENABLE_BDX_LOG_TRANSFER 1
#endif // CONFIG_CHIP_ENABLE_BDX_LOG_TRANSFER

#ifdef CONFIG_BUILD_CHIP_TESTS
// CHIP tests use APIs that are declared when CONFIG_BUILD_FOR_HOST_UNIT_TEST is enabled
// Enable CONFIG_BUILD_FOR_HOST_UNIT_TEST when building CHIP test binaries
#define CONFIG_BUILD_FOR_HOST_UNIT_TEST 1
#endif
2 changes: 0 additions & 2 deletions src/test_driver/esp32/main/include/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@
// Enable support functions for parsing command-line arguments
#define CHIP_CONFIG_ENABLE_ARG_PARSER 1

#define CONFIG_BUILD_FOR_HOST_UNIT_TEST 1

#endif // CHIP_PROJECT_CONFIG_H
Loading