Skip to content

Commit

Permalink
Added the platform chip_crypto to SiWx917 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Feb 13, 2023
1 parent bbfd5d6 commit 237017f
Show file tree
Hide file tree
Showing 4 changed files with 3,492 additions and 1 deletion.
16 changes: 16 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,19 @@ static_library("SiWx917") {

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

# Add platform crypto implementation
if (chip_crypto == "platform") {
sources += [
"CHIPCryptoPALTinyCrypt.cpp",
"CHIPCryptoPAL.h",

]
public_deps += [
"${chip_root}/src/crypto",
"${mbedtls_root}:mbedtls",
]
}

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

0 comments on commit 237017f

Please sign in to comment.