Skip to content

Commit 15b6ad7

Browse files
author
whitequark
committedOct 22, 2015
conda: add artiq-pipistrello-nist_qc1.
1 parent 8b78fe4 commit 15b6ad7

File tree

5 files changed

+18
-21
lines changed

5 files changed

+18
-21
lines changed
 

Diff for: ‎.travis.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ env:
77
- secure: "DUk/Ihg8KbbzEgPF0qrHqlxU8e8eET9i/BtzNvFddIGX4HP/P2qz0nk3cVkmjuWhqJXSbC22RdKME9qqPzw6fJwJ6dpJ3OR6dDmSd7rewavq+niwxu52PVa+yK8mL4yf1terM7QQ5tIRf+yUL9qGKrZ2xyvEuRit6d4cFep43Ws="
88
matrix:
99
- BUILD_SOC=none
10+
- BUILD_SOC=pipistrello-nist_qc1
1011
install:
1112
- mkdir -p $HOME/.mlabs
12-
- if [ $TRAVIS_PULL_REQUEST != false ]; then BUILD_SOC=none; fi
13-
- if [ $BUILD_SOC != none ]; then ./.travis/get-xilinx.sh; ./.travis/get-toolchain.sh; fi
13+
- [ $TRAVIS_PULL_REQUEST != false ] && BUILD_SOC=none
14+
- [ $BUILD_SOC != none ] && ./.travis/get-xilinx.sh
15+
- [ $BUILD_SOC != none ] && ./.travis/get-toolchain.sh
16+
- [ $BUILD_SOC != none ] && ./.travis/get-misoc.sh
1417
- . ./.travis/get-anaconda.sh
1518
- source $HOME/miniconda/bin/activate py35
16-
- conda install -q pip coverage anaconda-client migen=0.0 cython
19+
- conda install -q pip coverage anaconda-client cython
1720
- pip install coveralls
1821
# workaround for https://github.com/conda/conda-build/issues/466
1922
- mkdir -p /home/travis/miniconda/conda-bld/linux-64
@@ -23,9 +26,12 @@ script:
2326
- conda install -q --use-local artiq
2427
- |
2528
if [ $BUILD_SOC == none ]; then
26-
PACKAGES="$(conda build --output --python 3.5 conda/artiq) $PACKAGES"
2729
coverage run --source=artiq setup.py test
2830
make -C doc/manual html
31+
PACKAGES="$(conda build --output --python 3.5 conda/artiq) $PACKAGES"
32+
else
33+
conda build --python 3.5 conda/artiq-$BUILD_SOC
34+
PACKAGES="$(conda build --output --python 3.5 conda/artiq-$BUILD_SOC) $PACKAGES"
2935
fi
3036
after_success:
3137
- |

Diff for: ‎.travis/get-misoc.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
git clone --recursive https://github.com/m-labs/misoc $HOME/misoc
4+
echo "export MSCDIR=$HOME/misoc" >> $HOME/.m-labs/build_settings.sh

Diff for: ‎.travis/get-toolchain.sh

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22

33
packages="http://us.archive.ubuntu.com/ubuntu/pool/universe/i/iverilog/iverilog_0.9.7-1_amd64.deb"
4-
archives="http://fehu.whitequark.org/files/llvm-or1k.tbz2"
54

65
mkdir -p packages
76

@@ -12,18 +11,5 @@ do
1211
dpkg -x $pkg_name packages
1312
done
1413

15-
for a in $archives
16-
do
17-
wget $a
18-
(cd packages && tar xf ../$(basename $a))
19-
done
20-
21-
export PATH=$PWD/packages/usr/local/llvm-or1k/bin:$PWD/packages/usr/local/bin:$PWD/packages/usr/bin:$PATH
22-
export LD_LIBRARY_PATH=$PWD/packages/usr/lib/x86_64-linux-gnu:$PWD/packages/usr/local/x86_64-unknown-linux-gnu/or1k-elf/lib:$LD_LIBRARY_PATH
23-
24-
echo "export LD_LIBRARY_PATH=$PWD/packages/usr/lib/x86_64-linux-gnu:$PWD/packages/usr/local/x86_64-unknown-linux-gnu/or1k-elf/lib:\$LD_LIBRARY_PATH" >> $HOME/.mlabs/build_settings.sh
25-
echo "export PATH=$PWD/packages/usr/local/llvm-or1k/bin:$PWD/packages/usr/local/bin:$PWD/packages/usr/bin:\$PATH" >> $HOME/.mlabs/build_settings.sh
26-
27-
or1k-linux-as --version
28-
llc --version
29-
clang --version
14+
echo "export LD_LIBRARY_PATH=$PWD/packages/usr/lib/x86_64-linux-gnu" >> $HOME/.m-labs/build_settings.sh
15+
echo "export PATH=$PWD/packages/usr/bin:\$PATH" >> $HOME/.m-labs/build_settings.sh

Diff for: ‎.travis/get-xilinx.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ git clone https://github.com/fallen/impersonate_macaddress
3030
make -C impersonate_macaddress
3131
# Tell mibuild where Xilinx toolchains are installed
3232
# and feed it the mac address corresponding to the license
33-
cat >> $HOME/.mlabs/build_settings.sh << EOF
33+
cat >> $HOME/.m-labs/build_settings.sh << EOF
3434
MISOC_EXTRA_VIVADO_CMDLINE="-Ob vivado_path $HOME/Xilinx/Vivado"
3535
MISOC_EXTRA_ISE_CMDLINE="-Ob ise_path $HOME/opt/Xilinx/"
3636
export MACADDR=$macaddress

Diff for: ‎conda/artiq-pipistrello-nist_qc1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 8b78fe492a076ce105fbbc912c898c6318a6f242

0 commit comments

Comments
 (0)