From 6cad942041d2eaedd5b4dddf759f3d29c63d01d1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 21 Dec 2017 23:59:14 +0800 Subject: [PATCH] conda: add Sayma RTM package --- conda/artiq-sayma_rtm/build.sh | 11 +++++++++++ conda/artiq-sayma_rtm/meta.yaml | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 conda/artiq-sayma_rtm/build.sh create mode 100644 conda/artiq-sayma_rtm/meta.yaml diff --git a/conda/artiq-sayma_rtm/build.sh b/conda/artiq-sayma_rtm/build.sh new file mode 100644 index 000000000..5b9476ac7 --- /dev/null +++ b/conda/artiq-sayma_rtm/build.sh @@ -0,0 +1,11 @@ +#!/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/sayma_rtm +mkdir -p $SOC_PREFIX + +$PYTHON -m artiq.gateware.targets.sayma_rtm +cp artiq_sayma_rtm/top.bit $SOC_PREFIX +cp artiq_sayma_rtm/sayma_rtm_csr.csv $SOC_PREFIX diff --git a/conda/artiq-sayma_rtm/meta.yaml b/conda/artiq-sayma_rtm/meta.yaml new file mode 100644 index 000000000..a792ba439 --- /dev/null +++ b/conda/artiq-sayma_rtm/meta.yaml @@ -0,0 +1,23 @@ +package: + name: artiq-sayma_rtm + version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} + +source: + git_url: ../.. + +build: + noarch: generic + ignore_prefix_files: True + number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }} + string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_FULL_HASH", "")[:8] }} + +requirements: + build: + - artiq-dev {{ "{tag} py_{number}+git{hash}".format(tag=environ.get("GIT_DESCRIBE_TAG"), number=environ.get("GIT_DESCRIBE_NUMBER"), hash=environ.get("GIT_FULL_HASH", "")[:8]) if "GIT_DESCRIBE_TAG" in environ else "" }} + run: + - artiq {{ "{tag} py_{number}+git{hash}".format(tag=environ.get("GIT_DESCRIBE_TAG"), number=environ.get("GIT_DESCRIBE_NUMBER"), hash=environ.get("GIT_FULL_HASH", "")[:8]) if "GIT_DESCRIBE_TAG" in environ else "" }} + +about: + home: https://m-labs.hk/artiq + license: LGPL + summary: 'Bitstream and CSR map for Sayma RTM'