-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallianceInstaller.sh
executable file
·37 lines (30 loc) · 1.04 KB
/
allianceInstaller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "This script will recompile alliance binary for your system"
echo "Cloning alliance repository in ${HOME}/alliance"
mkdir -p $HOME/alliance
export INSTALL_ALLIANCE_PATH=$HOME/alliance
cd $INSTALL_ALLIANCE_PATH
git clone https://gitlab.lip6.fr/vlsi-eda/alliance.git
echo "Alliance compiling"
srcDir=${INSTALL_ALLIANCE_PATH}/alliance/alliance/src
commonRoot=${INSTALL_ALLIANCE_PATH}
buildDir=${commonRoot}/build
installDir=${commonRoot}/install
export ALLIANCE_TOP=${installDir}
export LD_LIBRARY_PATH=${installDir}/lib:${LD_LIBRARY_PATH}
cd ${srcDir}
# Skip doc generation to avoid pulling TeXLive in docker images.
sed -i 's,dirs="\$newdirs documentation",dirs="$newdirs",' ./autostuff
./autostuff clean
./autostuff
mkdir -p ${buildDir}
cd ${buildDir}
${srcDir}/configure --prefix=${ALLIANCE_TOP} --enable-alc-shared
make -j1 install
echo "export PATH=$PATH:$INSTALL_ALLIANCE_PATH/install/bin" >> ~/.bashrc
echo "
export MBK_IN_LO=vst
export MBK_OUT_LO=vst
export MBK_TARGET_LIB=${installDir}/cells/sxlib
" >> ~/.bashrc
source ~/.bashrc