forked from M-Labs/artiq
conda: add artiq-kc705-nist_qc[12].
This commit is contained in:
parent
8374e8d33e
commit
026504e578
@ -8,6 +8,8 @@ env:
|
||||
matrix:
|
||||
- BUILD_SOC=none
|
||||
- BUILD_SOC=pipistrello-nist_qc1
|
||||
- BUILD_SOC=kc705-nist_qc1
|
||||
- BUILD_SOC=kc705-nist_qc2
|
||||
install:
|
||||
- mkdir -p $HOME/.m-labs
|
||||
- if [ $TRAVIS_PULL_REQUEST != false ]; then BUILD_SOC=none; fi
|
||||
|
26
conda/artiq-kc705-nist_qc1/build.sh
Normal file
26
conda/artiq-kc705-nist_qc1/build.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
BUILD_SETTINGS_FILE=$HOME/.m-labs/build_settings.sh
|
||||
[ -f $BUILD_SETTINGS_FILE ] && . $BUILD_SETTINGS_FILE
|
||||
|
||||
SOC_PREFIX=$PREFIX/lib/python3.5/site-packages/artiq/binaries/kc705
|
||||
mkdir -p $SOC_PREFIX/nist_qc1
|
||||
|
||||
SOC_ROOT=$PWD/soc
|
||||
|
||||
# build bitstream
|
||||
|
||||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 $MISOC_EXTRA_VIVADO_CMDLINE build-bitstream)
|
||||
cp $MSCDIR/build/artiq_kc705-nist_qc1-kc705.bit $SOC_PREFIX/
|
||||
wget http://sionneau.net/artiq/binaries/kc705/flash_proxy/bscan_spi_kc705.bit
|
||||
mv bscan_spi_kc705.bit $SOC_PREFIX/
|
||||
|
||||
# build BIOS
|
||||
|
||||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 build-headers build-bios)
|
||||
cp $MSCDIR/software/bios/bios.bin $SOC_PREFIX/
|
||||
|
||||
# build runtime
|
||||
|
||||
make -C soc/runtime clean runtime.fbi
|
||||
cp soc/runtime/runtime.fbi $SOC_PREFIX/nist_qc1/
|
27
conda/artiq-kc705-nist_qc1/meta.yaml
Normal file
27
conda/artiq-kc705-nist_qc1/meta.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
package:
|
||||
name: artiq-kc705-nist_qc1
|
||||
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }}
|
||||
|
||||
source:
|
||||
git_url: https://github.com/m-labs/artiq
|
||||
git_tag: master
|
||||
|
||||
build:
|
||||
noarch_python: true
|
||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
||||
|
||||
requirements:
|
||||
build:
|
||||
# We don't get meaningful GIT_DESCRIBE_* values until before conda installs build dependencies.
|
||||
- artiq 0.0
|
||||
- migen 0.0
|
||||
- llvm-or1k
|
||||
- binutils-or1k-linux
|
||||
run:
|
||||
- artiq {{ "{tag} py_{number}+git{hash}".format(tag=environ.get("GIT_DESCRIBE_TAG"), number=environ.get("GIT_DESCRIBE_NUMBER"), hash=environ.get("GIT_DESCRIBE_HASH")[1:]) if "GIT_DESCRIBE_TAG" in environ else "" }}
|
||||
|
||||
about:
|
||||
home: http://m-labs.hk/artiq
|
||||
license: 3-clause BSD
|
||||
summary: 'Bitstream, BIOS and runtime for NIST_QC1 on the KC705 board'
|
26
conda/artiq-kc705-nist_qc2/build.sh
Normal file
26
conda/artiq-kc705-nist_qc2/build.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
BUILD_SETTINGS_FILE=$HOME/.m-labs/build_settings.sh
|
||||
[ -f $BUILD_SETTINGS_FILE ] && . $BUILD_SETTINGS_FILE
|
||||
|
||||
SOC_PREFIX=$PREFIX/lib/python3.5/site-packages/artiq/binaries/kc705
|
||||
mkdir -p $SOC_PREFIX/nist_qc2
|
||||
|
||||
SOC_ROOT=$PWD/soc
|
||||
|
||||
# build bitstream
|
||||
|
||||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 -s NIST_QC2 $MISOC_EXTRA_VIVADO_CMDLINE build-bitstream)
|
||||
cp $MSCDIR/build/artiq_kc705-nist_qc2-kc705.bit $SOC_PREFIX/
|
||||
wget http://sionneau.net/artiq/binaries/kc705/flash_proxy/bscan_spi_kc705.bit
|
||||
mv bscan_spi_kc705.bit $SOC_PREFIX/
|
||||
|
||||
# build BIOS
|
||||
|
||||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 -s NIST_QC2 build-headers build-bios)
|
||||
cp $MSCDIR/software/bios/bios.bin $SOC_PREFIX/
|
||||
|
||||
# build runtime
|
||||
|
||||
make -C soc/runtime clean runtime.fbi
|
||||
cp soc/runtime/runtime.fbi $SOC_PREFIX/nist_qc2/
|
27
conda/artiq-kc705-nist_qc2/meta.yaml
Normal file
27
conda/artiq-kc705-nist_qc2/meta.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
package:
|
||||
name: artiq-kc705-nist_qc2
|
||||
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }}
|
||||
|
||||
source:
|
||||
git_url: https://github.com/m-labs/artiq
|
||||
git_tag: master
|
||||
|
||||
build:
|
||||
noarch_python: true
|
||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
||||
|
||||
requirements:
|
||||
build:
|
||||
# We don't get meaningful GIT_DESCRIBE_* values until before conda installs build dependencies.
|
||||
- artiq 0.0
|
||||
- migen 0.0
|
||||
- llvm-or1k
|
||||
- binutils-or1k-linux
|
||||
run:
|
||||
- artiq {{ "{tag} py_{number}+git{hash}".format(tag=environ.get("GIT_DESCRIBE_TAG"), number=environ.get("GIT_DESCRIBE_NUMBER"), hash=environ.get("GIT_DESCRIBE_HASH")[1:]) if "GIT_DESCRIBE_TAG" in environ else "" }}
|
||||
|
||||
about:
|
||||
home: http://m-labs.hk/artiq
|
||||
license: 3-clause BSD
|
||||
summary: 'Bitstream, BIOS and runtime for NIST_QC2 on the KC705 board'
|
Loading…
Reference in New Issue
Block a user