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

[Silabs] [SiWx917] Added the platform chip_crypto to SiWx917 platform #25019

Merged
merged 8 commits into from
Feb 27, 2023
Merged
12 changes: 12 additions & 0 deletions src/platform/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if (chip_enable_openthread) {
import("//build_overrides/openthread.gni")
}

if (chip_crypto == "platform") {
import("//build_overrides/mbedtls.gni")
}
static_library("SiWx917") {
sources = [
"${silabs_platform_dir}/BLEManagerImpl.h",
Expand Down Expand Up @@ -67,6 +70,15 @@ static_library("SiWx917") {

public_deps = [ "${chip_root}/src/platform:platform_base" ]

# Add platform crypto implementation
if (chip_crypto == "platform") {
sources += [ "CHIPCryptoPALTinyCrypt.cpp" ]
public_deps += [
"${chip_root}/src/crypto",
"${mbedtls_root}:mbedtls",
]
}

if (chip_enable_wifi) {
sources += [
"${silabs_platform_dir}/ConnectivityManagerImpl_WIFI.cpp",
Expand Down
Loading