From ef40fb93c2d7b16348065f6b5237c887d1801bc2 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 15 Jan 2018 15:04:46 +0100 Subject: [PATCH] conda: add artiq-kasli-opticlock --- conda/artiq-kasli-opticlock/build.sh | 9 +++++++++ conda/artiq-kasli-opticlock/meta.yaml | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 conda/artiq-kasli-opticlock/build.sh create mode 100644 conda/artiq-kasli-opticlock/meta.yaml diff --git a/conda/artiq-kasli-opticlock/build.sh b/conda/artiq-kasli-opticlock/build.sh new file mode 100644 index 000000000..fcf6dc5ee --- /dev/null +++ b/conda/artiq-kasli-opticlock/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +SOC_PREFIX=$PREFIX/lib/python3.5/site-packages/artiq/binaries/kasli-opticlock +mkdir -p $SOC_PREFIX + +V=1 $PYTHON -m artiq.gateware.targets.kasli --variant opticlock +cp misoc_opticlock_kasli/gateware/top.bit $SOC_PREFIX +cp misoc_opticlock_kasli/software/bootloader/bootloader.bin $SOC_PREFIX +cp misoc_opticlock_kasli/software/runtime/runtime.{elf,fbi} $SOC_PREFIX diff --git a/conda/artiq-kasli-opticlock/meta.yaml b/conda/artiq-kasli-opticlock/meta.yaml new file mode 100644 index 000000000..57acc34f7 --- /dev/null +++ b/conda/artiq-kasli-opticlock/meta.yaml @@ -0,0 +1,23 @@ +package: + name: artiq-kasli-opticlock + 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, BIOS and runtime for the opticlock variant of Kasli'