Skip to content

Commit a75e02b

Browse files
author
Andras Fekete
committed
Only set FIPS hash if running a FIPS build
1 parent 5345b57 commit a75e02b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

IDE/Android/build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,15 @@ if [ ! -e ${WORKSPACE}/wolfssl-install ]; then
7777
fi
7878
cd ${WORKSPACE}/wolfssl-source && \
7979
CC=x86_64-linux-android34-clang ./configure ${WOLFSSL_CONFIG_OPTS} "${WOLFSSL_CONFIG_CPPFLAGS}" -prefix=${WORKSPACE}/wolfssl-install --host=x86_64-linux-android --disable-asm CFLAGS=-fPIC && \
80-
make && \
80+
make
81+
checkReturn $?
82+
if [ "${USE_FIPS}" = "true" ]; then
8183
adb push --sync src/.libs/libwolfssl.so ./wolfcrypt/test/.libs/testwolfcrypt /data/local/tmp/ && \
8284
NEWHASH=$(adb shell "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/testwolfcrypt 2>&1 | sed -n 's/hash = \(.*\)/\1/p'") && \
8385
sed -i "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c && \
84-
make -j install
86+
checkReturn $?
87+
fi
88+
make -j install
8589
checkReturn $?
8690
fi
8791
export LD_LIBRARY_PATH="${WORKSPACE}/wolfssl-install/lib:$LD_LIBRARY_PATH"

0 commit comments

Comments
 (0)