Skip to content

Commit b9d66f8

Browse files
committed
update Android install script, create missing files if needed
1 parent 76da3b0 commit b9d66f8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

platform/android_aosp/jsse_install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ else
9494

9595
cp $wolfssl_dir/README $aosp_wolfssl
9696
cp $wolfssl_dir/COPYING $aosp_wolfssl
97+
98+
# Touch missing files if needed. If wolfSSL has been cloned from
99+
# GitHub, they don't exist. Only in stable releases.
100+
if [ ! -f "$aosp_wolfssl/wolfcrypt/src/selftest.c" ]; then
101+
touch "$aosp_wolfssl/wolfcrypt/src/selftest.c"
102+
fi
103+
104+
# Create blank options.h, wolfssljni includes it
105+
cp "$aosp_wolfssl/wolfssl/options.h.in" "$aosp_wolfssl/wolfssl/options.h"
97106
fi
98107

99108
# Copy wolfSSL JNI sources over to AOSP code tree

0 commit comments

Comments
 (0)