Skip to content

Commit da23f5d

Browse files
[nrf noup] Remove dependency to openssl from CHIP tool build for linux
Currently the chip-tool that is released as a part of sdk-connectedhomeip has dependency to openssl. The issue is that Ubuntu 20.04 and Ubuntu 22.04 use different version of OpenSSL and version built under 20.04 does not work under 22.04 (without some hacks to install the old openssl version) and vice-verse. - Removed the dependency to the dynamic library (OpenSSL) to build Chip-Tool with the mbedTLS.
1 parent a1b16af commit da23f5d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/release_tools.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ jobs:
6363
- name: Build x64 CHIP Tool with debug logs enabled
6464
timeout-minutes: 10
6565
run: |
66-
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_debug --args='chip_mdns=\"platform\" symbol_level=0'"
66+
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_debug --args='chip_mdns=\"platform\" chip_crypto=\"mbedtls\" symbol_level=0'"
6767
scripts/run_in_build_env.sh "ninja -C out/chiptool_x64_debug chip-tool"
6868
mv out/chiptool_x64_debug/chip-tool out/chiptool_x64_debug/chip-tool-debug
6969
- name: Build x64 CHIP Tool with debug logs disabled
7070
timeout-minutes: 10
7171
run: |
72-
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_release --args='chip_mdns=\"platform\" chip_detail_logging=false symbol_level=0'"
72+
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_release --args='chip_mdns=\"platform\" chip_detail_logging=false chip_crypto=\"mbedtls\" symbol_level=0'"
7373
scripts/run_in_build_env.sh "ninja -C out/chiptool_x64_release chip-tool"
7474
mv out/chiptool_x64_release/chip-tool out/chiptool_x64_release/chip-tool-release
7575
- name: Build arm64 CHIP Tool with debug logs enabled
@@ -81,7 +81,8 @@ jobs:
8181
target_cxx=\"aarch64-linux-gnu-g++\"
8282
target_ar=\"aarch64-linux-gnu-ar\"
8383
target_cpu=\"arm64\"
84-
symbol_level=0'"
84+
symbol_level=0
85+
chip_crypto=\"mbedtls\"'"
8586
scripts/run_in_build_env.sh "ninja -C out/chiptool_arm64_debug chip-tool"
8687
mv out/chiptool_arm64_debug/chip-tool out/chiptool_arm64_debug/chip-tool-debug
8788
- name: Build arm64 CHIP Tool with debug logs disabled
@@ -94,7 +95,8 @@ jobs:
9495
target_cxx=\"aarch64-linux-gnu-g++\"
9596
target_ar=\"aarch64-linux-gnu-ar\"
9697
target_cpu=\"arm64\"
97-
symbol_level=0'"
98+
symbol_level=0
99+
chip_crypto=\"mbedtls\"'"
98100
scripts/run_in_build_env.sh "ninja -C out/chiptool_arm64_release chip-tool"
99101
mv out/chiptool_arm64_release/chip-tool out/chiptool_arm64_release/chip-tool-release
100102
- name: Build x64 OTA Provider

src/tools/chip-cert/BUILD.gn

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ executable("chip-cert") {
3737
"chip-cert.h",
3838
]
3939

40-
public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
40+
if (chip_crypto == "openssl") {
41+
public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
42+
}
4143

4244
cflags = [ "-Wconversion" ]
4345

0 commit comments

Comments
 (0)