From ba6388444b6c6427f0c052d42dcff44093cce2b1 Mon Sep 17 00:00:00 2001 From: Kedar Sovani Date: Thu, 20 Aug 2020 18:22:12 +0530 Subject: [PATCH] Use external mbedtls (used as-is from Rafal's PR) --- src/crypto/BUILD.gn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crypto/BUILD.gn b/src/crypto/BUILD.gn index 718091d655f95f..2135257fd23cd8 100644 --- a/src/crypto/BUILD.gn +++ b/src/crypto/BUILD.gn @@ -60,7 +60,11 @@ static_library("crypto") { public_configs = [] if (chip_crypto == "mbedtls") { sources += [ "CHIPCryptoPALmbedTLS.cpp" ] - public_deps += [ "${mbedtls_root}:mbedtls" ] + + # ESP32 has its own mbedTLS + if (target_cpu != "esp32") { + public_deps += [ "${mbedtls_root}:mbedtls" ] + } } else if (chip_crypto == "openssl") { sources += [ "CHIPCryptoPALOpenSSL.cpp" ] public_configs += [ ":openssl_config" ]