diff options
author | Sven Gothel <[email protected]> | 2021-06-21 03:28:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-06-21 03:28:20 +0200 |
commit | 5fbe098f76ff5930b7f7b6b7cd8bde823a8c2127 (patch) | |
tree | 6962aeee68bdc7562b9ee550c5d03ad515103224 /scripts | |
parent | e9c9140dda7b5aef852876db54923e64e9ca8383 (diff) |
build-botan.sh: `--disable-neon` for ARM32 due to NEON ASM GCC issues *FIXME* ; ARM64 builds, passes auto + manual tests
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build-botan.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build-botan.sh b/scripts/build-botan.sh index 1756c62..62c5aa3 100644 --- a/scripts/build-botan.sh +++ b/scripts/build-botan.sh @@ -11,11 +11,14 @@ MOD_HW_COMMON=simd,chacha_simd32,chacha_avx2,simd_avx2 #MOD_HW_AMD64=aes_ni,sha1_sse2,sha1_x86,sha2_32_x86,$MOD_HW_COMMON MOD_HW_AMD64=sha1_sse2,sha1_x86,sha2_32_x86,$MOD_HW_COMMON +CFG_OPTIONS_AMD64= #MOD_HW_ARM64=aes_armv8,sha1_armv8,sha2_32_armv8,$MOD_HW_COMMON MOD_HW_ARM64=sha1_armv8,sha2_32_armv8,$MOD_HW_COMMON +CFG_OPTIONS_ARM64= MOD_HW_ARM32=$MOD_HW_COMMON +CFG_OPTIONS_ARM32="--disable-neon" MOD_RNG=system_rng @@ -30,14 +33,17 @@ case "$archabi" in "armhf") USE_CPU=armhf MOD_HW_THIS=$MOD_HW_ARM32 + CFG_OPTIONS_THIS=$CFG_OPTIONS_ARM32 ;; "arm64") USE_CPU=aarch64 MOD_HW_THIS=$MOD_HW_ARM64 + CFG_OPTIONS_THIS=$CFG_OPTIONS_ARM64 ;; "amd64") USE_CPU=x86_64 MOD_HW_THIS=$MOD_HW_AMD64 + CFG_OPTIONS_THIS=$CFG_OPTIONS_AMD64 ;; *) echo "Unsupported archabi $archabi" @@ -54,7 +60,9 @@ mkdir -p $rootdir/include/amalgamation-$archabi rm -f $rootdir/include/amalgamation-$archabi/botan_all.h rm -f $rootdir/include/amalgamation-$archabi/botan_all.cpp -./configure.py --cpu=$USE_CPU --prefix=`pwd`/dist-$archabi-min --minimized-build \ +./configure.py --cpu=$USE_CPU $CFG_OPTIONS_THIS \ + --prefix=`pwd`/dist-$archabi-min \ + --minimized-build \ --enable-modules=$MOD_BASIC,$MOD_CIPHER,$MOD_HASH,$MOD_RNG,$MOD_HW_THIS \ --cxxflags=$CXX_FLAGS \ --ldflags=$LD_FLAGS \ |