diff --git a/.github/workflows/examples-nrfconnect.yaml b/.github/workflows/examples-nrfconnect.yaml index 8c5e068a3945c5..5afee39331a641 100644 --- a/.github/workflows/examples-nrfconnect.yaml +++ b/.github/workflows/examples-nrfconnect.yaml @@ -247,7 +247,7 @@ jobs: examples/all-clusters-app/nrfconnect/build/zephyr/zephyr.elf \ /tmp/bloat_reports/ - name: Run unit tests for Zephyr native_posix_64 platform - if: github.event_name == 'push' || steps.changed_paths.outputs.tests == 'true' || steps.changed_paths.outputs.nrfconnect == 'true' + if: github.event_name == 'push' || steps.changed_paths.outputs.tests == 'true' timeout-minutes: 15 run: | scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target nrf-native-posix-64-tests build" diff --git a/config/nrfconnect/chip-module/CMakeLists.txt b/config/nrfconnect/chip-module/CMakeLists.txt index bb1585a3c92064..0ca4a816f5f1d2 100644 --- a/config/nrfconnect/chip-module/CMakeLists.txt +++ b/config/nrfconnect/chip-module/CMakeLists.txt @@ -114,9 +114,6 @@ if (CONFIG_NORDIC_SECURITY_BACKEND) zephyr_include_directories($) endif() list(APPEND CHIP_CFLAGS -DMBEDTLS_CONFIG_FILE=) -elseif(CONFIG_MBEDTLS) - zephyr_include_directories($) - zephyr_compile_definitions($) endif() if (CONFIG_NRF_802154_RADIO_DRIVER) diff --git a/config/nrfconnect/chip-module/Kconfig b/config/nrfconnect/chip-module/Kconfig index e134263e7ba8c2..4450db69308f6d 100644 --- a/config/nrfconnect/chip-module/Kconfig +++ b/config/nrfconnect/chip-module/Kconfig @@ -90,7 +90,7 @@ config CHIP_DEBUG_SYMBOLS Build the application with debug symbols. config CHIP_MALLOC_SYS_HEAP - default y if !ARCH_POSIX + default y config CHIP_FACTORY_DATA bool "Enable Factory Data support" diff --git a/scripts/constraints.txt b/scripts/constraints.txt index ca58c61982c778..3f328fd26be347 100644 --- a/scripts/constraints.txt +++ b/scripts/constraints.txt @@ -346,7 +346,7 @@ wcwidth==0.2.5 # prompt-toolkit werkzeug==0.16.1 # via flask -west==1.0.0 +west==0.12.0 # via -r requirements.txt wheel==0.36.2 # via -r requirements.txt diff --git a/src/test_driver/nrfconnect/CMakeLists.txt b/src/test_driver/nrfconnect/CMakeLists.txt index 750853ea25d214..39648928a5dde2 100644 --- a/src/test_driver/nrfconnect/CMakeLists.txt +++ b/src/test_driver/nrfconnect/CMakeLists.txt @@ -42,6 +42,9 @@ set(CHIP_CFLAGS -DCHIP_SYSTEM_CONFIG_USE_ZEPHYR_NET_IF=0 -DCHIP_SYSTEM_CONFIG_USE_BSD_IFADDRS=1 -I${CMAKE_CURRENT_SOURCE_DIR}/main/include + -DMBEDTLS_CONFIG_FILE= + -isystem$ENV{ZEPHYR_BASE}/modules/mbedtls/configs + -isystem$ENV{ZEPHYR_BASE}/../mbedtls/include ) # Load NCS/Zephyr build system diff --git a/src/test_driver/nrfconnect/main/runner.cpp b/src/test_driver/nrfconnect/main/runner.cpp index 7cff68e0efcbc6..a44e09a3ebcae1 100644 --- a/src/test_driver/nrfconnect/main/runner.cpp +++ b/src/test_driver/nrfconnect/main/runner.cpp @@ -27,7 +27,7 @@ using namespace ::chip::DeviceLayer; LOG_MODULE_REGISTER(runner, CONFIG_MATTER_LOG_LEVEL); -extern "C" void main(void) +void main(void) { VerifyOrDie(settings_subsys_init() == 0); diff --git a/src/test_driver/nrfconnect/prj.conf b/src/test_driver/nrfconnect/prj.conf index f70a0d95063dc9..3b167d03c64124 100644 --- a/src/test_driver/nrfconnect/prj.conf +++ b/src/test_driver/nrfconnect/prj.conf @@ -67,9 +67,7 @@ CONFIG_MBEDTLS_CFG_FILE="config-tls-generic.h" CONFIG_MBEDTLS_USER_CONFIG_ENABLE=y CONFIG_MBEDTLS_USER_CONFIG_FILE="app_mbedtls_config.h" CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y -CONFIG_MBEDTLS_ECDH_C=y -CONFIG_MBEDTLS_ECDSA_C=y -CONFIG_MBEDTLS_ECP_C=y +CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED=y CONFIG_MBEDTLS_CIPHER_CCM_ENABLED=y # Enable entropy