2021-06-14 13:12:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://github.com/ARMmbed/mbedtls.git"
|
2023-03-28 12:52:55 +00:00
|
|
|
SCRIPT_COMMIT="v3.4.0"
|
2022-07-12 17:55:52 +00:00
|
|
|
SCRIPT_TAGFILTER="v3.*"
|
2021-06-14 13:12:49 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2021-06-14 13:12:49 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
2022-07-11 19:36:32 +00:00
|
|
|
-DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DGEN_FILES=ON \
|
2021-06-14 13:12:49 +00:00
|
|
|
-DUSE_STATIC_MBEDTLS_LIBRARY=ON -DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DINSTALL_MBEDTLS_HEADERS=ON \
|
|
|
|
..
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
}
|