From dae63bd10cfb8e65d6d30921c5a719de39a05f36 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 20 Jan 2016 21:36:21 -0500 Subject: [PATCH] conda: add artiq-kc705-nist_clock --- conda/artiq-kc705-nist_clock/build.sh | 14 +++++++++++++ conda/artiq-kc705-nist_clock/meta.yaml | 27 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 conda/artiq-kc705-nist_clock/build.sh create mode 100644 conda/artiq-kc705-nist_clock/meta.yaml diff --git a/conda/artiq-kc705-nist_clock/build.sh b/conda/artiq-kc705-nist_clock/build.sh new file mode 100644 index 000000000..cf93c2d37 --- /dev/null +++ b/conda/artiq-kc705-nist_clock/build.sh @@ -0,0 +1,14 @@ +#!/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-clock +mkdir -p $SOC_PREFIX + +$PYTHON -m artiq.gateware.targets.kc705 -H clock --toolchain vivado $MISOC_EXTRA_VIVADO_CMDLINE +cp misoc_nist_clock_kc705/gateware/top.bit $SOC_PREFIX +cp misoc_nist_clock_kc705/software/bios/bios.bin $SOC_PREFIX +cp misoc_nist_clock_kc705/software/runtime/runtime.fbi $SOC_PREFIX + +wget -P $SOC_PREFIX https://raw.githubusercontent.com/jordens/bscan_spi_bitstreams/master/bscan_spi_xc7k325t.bit diff --git a/conda/artiq-kc705-nist_clock/meta.yaml b/conda/artiq-kc705-nist_clock/meta.yaml new file mode 100644 index 000000000..5b3e1a600 --- /dev/null +++ b/conda/artiq-kc705-nist_clock/meta.yaml @@ -0,0 +1,27 @@ +package: + name: artiq-kc705-nist_clock + version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} + +source: + path: ../.. + +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.2 + - misoc 0.1 + - 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: GPL + summary: 'Bitstream, BIOS and runtime for NIST_QC2 on the KC705 board'