. .env/bin/activate
pip3 install nose
-git clone https://github.com/nmigen/nmigen.git
+git clone https://github.com/westerndigitalcorporation/pyvcd.git
+git clone https://gitlab.com/nmigen/nmigen-boards.git
+git clone https://gitlab.com/nmigen/nmigen.git
+git clone https://git.libre-soc.org/git/c4m-jtag.git
git clone https://git.libre-soc.org/git/nmutil.git
+git clone https://git.libre-soc.org/git/openpower-isa.git
git clone https://git.libre-soc.org/git/ieee754fpu.git
-git clone https://git.libre-soc.org/git/nmigen-soc.git
+git clone https://gitlab.com/nmigen/nmigen-soc.git
git clone https://git.libre-soc.org/git/soc.git
+git clone https://git.libre-soc.org/git/pytest-output-to-files.git
-cd nmigen
+# pytest-output-to-files
+pushd pytest-output-to-files
python3 setup.py develop
+popd
+
+# pyvcd - needed for nmigen
+cd /home/$SUDO_USER/src/pyvcd
+git checkout 0.2.4
+python3 setup.py develop --no-deps
+
+# nmigen
+cd /home/$SUDO_USER/src/nmigen
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# nmigen-boards
+cd /home/$SUDO_USER/src/nmigen-boards
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# nmigen-soc
+cd ../nmigen-soc
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# c4m-jtag
+cd ../c4m-jtag
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# nmutil
cd ../nmutil
python3 setup.py develop
+
+# openpower-isa
+cd ../openpower-isa
+python3 setup.py develop
+make svanalysis
+make pywriter
+make pyfnwriter
+
+# ieee754fpy
cd ../ieee754fpu
git submodule update --init --recursive
python3 setup.py develop
-cd ../nmigen-soc
-python3 setup.py develop
+
+# soc
cd ../soc
make gitupdate
python3 setup.py develop
-python src/soc/decoder/pseudo/pywriter.py
-nosetests -v --processes=-1 --process-timeout=120
+# sigh sort out pinmux
+cd pinmux
+git checkout d96f737c0a53dde983
+cd ..
+
+make mkpinmux
+
+# comment this out - takes too long. run it manually
+# nosetests -v --processes=-1 --process-timeout=120
+