nope, correct EOF, sort out apt-get install dependencies
[dev-env-setup.git] / coriolis2-chroot
index 752a515249672a89d652f42061912899d9b7fc2e..a21f0235180c643ac72d601dd70702e6ac3c225c 100755 (executable)
@@ -30,6 +30,7 @@ echo Installing necessary apt dependencies in the chroot
 apt-get update -y
 apt-get upgrade -y
 apt-get install -y automake binutils-dev bison build-essential \
 apt-get update -y
 apt-get upgrade -y
 apt-get install -y automake binutils-dev bison build-essential \
+sysvinit-utils sysvinit-core \
 ccache clang cmake doxygen dvipng flex gcc git graphviz \
 imagemagick libboost-all-dev libboost-python-dev libbz2-dev \
 libmpfr-dev libgmp-dev libmotif-dev libreadline-dev \
 ccache clang cmake doxygen dvipng flex gcc git graphviz \
 imagemagick libboost-all-dev libboost-python-dev libbz2-dev \
 libmpfr-dev libgmp-dev libmotif-dev libreadline-dev \
@@ -40,6 +41,8 @@ qt4-dev-tools rapidjson-dev tcl tcl-dev tcl-tclreadline \
 texlive texlive-fonts-extra texlive-lang-french \
 texlive-latex-extra texlive-pictures xfig yosys zlib1g-dev
 
 texlive texlive-fonts-extra texlive-lang-french \
 texlive-latex-extra texlive-pictures xfig yosys zlib1g-dev
 
+# yeah don't add systemd in a chroot.  not funny joke
+apt-get remove -y systemd
 
 # Create user with same UID in the chroot
 useradd -m -p `python -c 'import crypt; print crypt.crypt("1234","Fx")'` -s /bin/bash $SUDO_USER -k /etc/skel
 
 # Create user with same UID in the chroot
 useradd -m -p `python -c 'import crypt; print crypt.crypt("1234","Fx")'` -s /bin/bash $SUDO_USER -k /etc/skel
@@ -78,6 +81,7 @@ This enables you to chroot into coriolis as an unprivileged user by running
 "
 
 # Build and install yosys from source
 "
 
 # Build and install yosys from source
+# note that a specific version of yosys is needed for ls180 at the moment
 chroot /opt/chroot/coriolis /bin/bash << EOF
 apt-get update -y 
 apt-get build-dep yosys -y
 chroot /opt/chroot/coriolis /bin/bash << EOF
 apt-get update -y 
 apt-get build-dep yosys -y
@@ -87,6 +91,7 @@ runuser $SUDO_USER --preserve-environment -c 'schroot -c coriolis /bin/bash << E
 cd /home/$SUDO_USER
 git clone https://github.com/cliffordwolf/yosys.git
 cd yosys
 cd /home/$SUDO_USER
 git clone https://github.com/cliffordwolf/yosys.git
 cd yosys
+git checkout 049e3abf9baf795e69b9ecb9c4f19de6131f8418
 make config-clang
 make -j$(nproc)
 EOF'
 make config-clang
 make -j$(nproc)
 EOF'