add ARM configuration mode

This commit is contained in:
ghost 2021-12-12 07:11:57 +02:00
parent 003ca73629
commit cb20dcd4a6

View File

@ -92,6 +92,10 @@ function install() {
read -rp "Chose twister edition [twisterarmy/miguelfreitas]: " -e EDITION read -rp "Chose twister edition [twisterarmy/miguelfreitas]: " -e EDITION
done done
until [[ $ARM =~ (y|n) ]]; do
read -rp "Configure for ARM? [y/n]: " -e ARM
done
mkdir ~/.twister mkdir ~/.twister
touch ~/.twister/twister.conf touch ~/.twister/twister.conf
chmod 600 ~/.twister/twister.conf chmod 600 ~/.twister/twister.conf
@ -156,7 +160,13 @@ function install() {
make clean make clean
./autotool.sh ./autotool.sh
./configure
if [[ $ARM == "y" ]]; then
./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
else
./configure
fi
make make
echo "Installation process completed!" echo "Installation process completed!"