From 8b5428e15857702d8acd010769b7e3f088839009 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 6 Jan 2022 23:18:13 +0000 Subject: [PATCH] mbedtls: fix build (#7101) * mbedtls: fix build * mbedtls: dont build tests --- projects/mbedtls/Dockerfile | 9 +++++++-- projects/mbedtls/build.sh | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/projects/mbedtls/Dockerfile b/projects/mbedtls/Dockerfile index f39ea2abb..1470eb6e5 100644 --- a/projects/mbedtls/Dockerfile +++ b/projects/mbedtls/Dockerfile @@ -15,9 +15,14 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder -#TODO change RUN apt-get update && apt-get install -y make cmake -RUN git clone --recursive --depth 1 -b development_2.x https://github.com/ARMmbed/mbedtls.git mbedtls +RUN apt-get update && apt-get install -y \ + python-all-dev \ + python3-all-dev \ + python3-pip +RUN pip3 install jinja2 + +RUN git clone --recursive --depth 1 -b development https://github.com/ARMmbed/mbedtls.git mbedtls RUN git clone --depth 1 https://github.com/google/boringssl.git boringssl RUN git clone --depth 1 https://github.com/openssl/openssl.git openssl WORKDIR mbedtls diff --git a/projects/mbedtls/build.sh b/projects/mbedtls/build.sh index 62ab29706..acfc33772 100755 --- a/projects/mbedtls/build.sh +++ b/projects/mbedtls/build.sh @@ -19,7 +19,7 @@ perl scripts/config.pl set MBEDTLS_PLATFORM_TIME_ALT mkdir build cd build -cmake .. +cmake -DENABLE_TESTING=OFF .. # build including fuzzers make -j$(nproc) all cp programs/fuzz/fuzz_* $OUT/