Skip to content

Commit a1b3110

Browse files
authored
build: enable threading support (#97)
* build: enable threading support
1 parent 119db14 commit a1b3110

File tree

11 files changed

+5
-1
lines changed

11 files changed

+5
-1
lines changed

.github/workflows/update-mbedtls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ jobs:
7575
----
7676
Auto-generated by [update-mbedtls workflow][1]
7777
78-
[1]: https://github.com/nRFCloud/provisioning/actions/workflows/update-mbedtls.yml
78+
[1]: https://github.com/open-coap/kotlin-mbedtls/actions/workflows/update-mbedtls.yml

compileMbedtls.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ fi
2929
python3 ${BUILD_DIR}/scripts/config.py -f "${BUILD_DIR}/include/mbedtls/mbedtls_config.h" unset MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
3030
python3 ${BUILD_DIR}/scripts/config.py -f "${BUILD_DIR}/include/mbedtls/mbedtls_config.h" set MBEDTLS_SSL_DTLS_CONNECTION_ID
3131

32+
# Enable threading support
33+
python3 ${BUILD_DIR}/scripts/config.py -f "${BUILD_DIR}/include/mbedtls/mbedtls_config.h" set MBEDTLS_THREADING_C
34+
python3 ${BUILD_DIR}/scripts/config.py -f "${BUILD_DIR}/include/mbedtls/mbedtls_config.h" set MBEDTLS_THREADING_PTHREAD
35+
3236
echo "Configuring CMake..."
3337
cmake \
3438
-S "${BUILD_DIR}" \
288 Bytes
Binary file not shown.
208 Bytes
Binary file not shown.
2.16 KB
Binary file not shown.

mbedtls-lib/bin/linux-x86-64/libmbedtls.so

100644100755
208 Bytes
Binary file not shown.

mbedtls-lib/bin/linux-x86-64/libmbedx509.so

100644100755
160 Bytes
Binary file not shown.

mbedtls-lib/bin/linux-x86-64/libtfpsacrypto.so

100644100755
6 KB
Binary file not shown.
1.67 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)