From 026504e5782b5b49b4130db445b6393fe076ff05 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 22 Oct 2015 16:00:31 +0300 Subject: [PATCH] conda: add artiq-kc705-nist_qc[12]. --- .travis.yml | 2 ++ conda/artiq-kc705-nist_qc1/build.sh | 26 ++++++++++++++++++++++++++ conda/artiq-kc705-nist_qc1/meta.yaml | 27 +++++++++++++++++++++++++++ conda/artiq-kc705-nist_qc2/build.sh | 26 ++++++++++++++++++++++++++ conda/artiq-kc705-nist_qc2/meta.yaml | 27 +++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 conda/artiq-kc705-nist_qc1/build.sh create mode 100644 conda/artiq-kc705-nist_qc1/meta.yaml create mode 100644 conda/artiq-kc705-nist_qc2/build.sh create mode 100644 conda/artiq-kc705-nist_qc2/meta.yaml diff --git a/.travis.yml b/.travis.yml index 044f31114..e05589de2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/conda/artiq-kc705-nist_qc1/build.sh b/conda/artiq-kc705-nist_qc1/build.sh new file mode 100644 index 000000000..495a0e74c --- /dev/null +++ b/conda/artiq-kc705-nist_qc1/build.sh @@ -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/ diff --git a/conda/artiq-kc705-nist_qc1/meta.yaml b/conda/artiq-kc705-nist_qc1/meta.yaml new file mode 100644 index 000000000..bee5c234b --- /dev/null +++ b/conda/artiq-kc705-nist_qc1/meta.yaml @@ -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' diff --git a/conda/artiq-kc705-nist_qc2/build.sh b/conda/artiq-kc705-nist_qc2/build.sh new file mode 100644 index 000000000..a65294b85 --- /dev/null +++ b/conda/artiq-kc705-nist_qc2/build.sh @@ -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/ diff --git a/conda/artiq-kc705-nist_qc2/meta.yaml b/conda/artiq-kc705-nist_qc2/meta.yaml new file mode 100644 index 000000000..1cbb86f2e --- /dev/null +++ b/conda/artiq-kc705-nist_qc2/meta.yaml @@ -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'