Skip to content

Commit

Permalink
Trying to get build working on new travis environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Sep 17, 2015
1 parent 539460f commit a94d5c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,17 @@ language:
compiler:
- gcc

sudo: false
addons:
apt:
packages:
- gnupg
- libreadline-dev
- libusb-1.0-0-dev
- python-yaml
- sdcc
- fxload

env:
matrix:
- BOARD=atlys TARGET=base
Expand Down
33 changes: 3 additions & 30 deletions scripts/get-env.sh
Expand Up @@ -38,8 +38,6 @@ set -x

if [ -f $XILINX_PASSPHRASE_FILE ]; then
# Need gpg to do the unencryption
sudo apt-get install -y gnupg

XILINX_DIR=$BUILD_DIR/Xilinx
if [ ! -d "$XILINX_DIR" ]; then
(
Expand Down Expand Up @@ -106,11 +104,6 @@ export PATH=$CONDA_DIR/bin:$PATH
# migen
MIGEN_DIR=$BUILD_DIR/migen
(
# Get iverilog
sudo apt-get install -y iverilog
# Install gtkwave
sudo apt-get install -y gtkwave

if [ ! -d $MIGEN_DIR ]; then
cd $BUILD_DIR
git clone https://github.com/m-labs/migen.git
Expand All @@ -119,9 +112,9 @@ MIGEN_DIR=$BUILD_DIR/migen
cd $MIGEN_DIR
git pull
fi
cd vpi
make all
sudo make install
#cd vpi
#make all
#sudo make install
)
export PYTHONPATH=$MIGEN_DIR:$PYTHONPATH
python3 -c "import migen"
Expand All @@ -139,9 +132,6 @@ MISOC_DIR=$BUILD_DIR/misoc
fi
git submodule init
git submodule update
cd tools
make
sudo make install
)
export PYTHONPATH=$MISOC_DIR:$PYTHONPATH
python3 -c "import misoclib"
Expand All @@ -164,8 +154,6 @@ python3 -c "import liteeth"
# libfpgalink
MAKESTUFF_DIR=$BUILD_DIR/makestuff
(
sudo apt-get install -y libreadline-dev libusb-1.0-0-dev python-yaml sdcc fxload

if [ ! -d $MAKESTUFF_DIR ]; then
cd $BUILD_DIR
wget -qO- http://tiny.cc/msbil | tar zxf -
Expand All @@ -182,20 +170,5 @@ export LD_LIBRARY_PATH=$MAKESTUFF_DIR/libs/libfpgalink/lin.x64/rel:$LD_LIBRARY_P
export PYTHONPATH=$MAKESTUFF_DIR/libs/libfpgalink/examples/python/:$PYTHONPATH
python3 -c "import fl"

USER=$(whoami)
# Load custom udev rules
(
cd $SETUP_DIR
sudo cp -uf 52-hdmi2usb.rules /etc/udev/rules.d/
sudo adduser $USER dialout
)
# Get the vizzini module needed for the Atlys board
(
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:timvideos/fpga-support
sudo apt-get update
sudo apt-get install -y vizzini-dkms
)

echo "Completed. To load environment:"
echo "source HDMI2USB-misoc-firmware/scripts/setup-env.sh"

0 comments on commit a94d5c5

Please sign in to comment.