aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-07-25 08:53:37 +0200
committerSven Gothel <[email protected]>2022-07-25 08:53:37 +0200
commit2f68ee2514017202941e7f7bfd5473be63e7c676 (patch)
tree4b7411d7fc81e1be82d442e7bbe91c4efef1402b /scripts
parent232a3682e90d3d1888d650928e573646e3d32f6c (diff)
Build amalgamation of Botan for os_name-archabi, supporting FreeBSD
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build-botan.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/build-botan.sh b/scripts/build-botan.sh
index 045db74..c87d12d 100644
--- a/scripts/build-botan.sh
+++ b/scripts/build-botan.sh
@@ -4,9 +4,9 @@ sdir=`dirname $(readlink -f $0)`
rootdir=`dirname $sdir`
bname=`basename $0 .sh`
-. $sdir/setup-machine-arch.sh
+. $rootdir/jaulib/scripts/setup-machine-arch.sh
-logfile=$rootdir/$bname-$archabi.log
+logfile=$rootdir/$bname-$os_name-$archabi.log
rm -f $logfile
MOD_HW_COMMON=simd,chacha_simd32,chacha_avx2,simd_avx2
@@ -70,9 +70,8 @@ buildit() {
echo MOD_RNG $MOD_RNG
echo MOD_HW_THIS $MOD_HW_THIS
- mkdir -p $rootdir/include/amalgamation-$archabi
- rm -f $rootdir/include/amalgamation-$archabi/botan_all.h
- rm -f $rootdir/include/amalgamation-$archabi/botan_all.cpp
+ rm -rf $rootdir/include/amalgamation-$os_name-$archabi
+ mkdir -p $rootdir/include/amalgamation-$os_name-$archabi
cd $rootdir/botan
@@ -83,14 +82,13 @@ buildit() {
--cxxflags=$CXX_FLAGS \
--ldflags=$LD_FLAGS \
--amalgamation \
- --with-doxygen \
# --with-lzma --with-bzip2 \
- mv botan_all.cpp botan_all.h $rootdir/include/amalgamation-$archabi/
+ mv botan_all.cpp botan_all.h $rootdir/include/amalgamation-$os_name-$archabi/
cd $rootdir
}
buildit 2>&1 | tee $logfile
-cp -av $logfile $rootdir/include/amalgamation-$archabi/
+cp -av $logfile $rootdir/include/amalgamation-$os_name-$archabi/