From 932fa884cca966b6034ce750ef50dbdca8f16de1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 21 Feb 2018 11:15:01 +0800 Subject: [PATCH] conda: add recipes for Kasli DRTIO --- conda/artiq-kasli-master/build.sh | 9 +++++++++ conda/artiq-kasli-master/meta.yaml | 23 +++++++++++++++++++++++ conda/artiq-kasli-satellite/build.sh | 9 +++++++++ conda/artiq-kasli-satellite/meta.yaml | 23 +++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 conda/artiq-kasli-master/build.sh create mode 100644 conda/artiq-kasli-master/meta.yaml create mode 100644 conda/artiq-kasli-satellite/build.sh create mode 100644 conda/artiq-kasli-satellite/meta.yaml diff --git a/conda/artiq-kasli-master/build.sh b/conda/artiq-kasli-master/build.sh new file mode 100644 index 000000000..2189002d9 --- /dev/null +++ b/conda/artiq-kasli-master/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +SOC_PREFIX=$SP_DIR/artiq/binaries/kasli-master +mkdir -p $SOC_PREFIX + +V=1 $PYTHON -m artiq.gateware.targets.kasli -V master +cp artiq_kasli/master/gateware/top.bit $SOC_PREFIX +cp artiq_kasli/master/software/bootloader/bootloader.bin $SOC_PREFIX +cp artiq_kasli/master/software/runtime/runtime.{elf,fbi} $SOC_PREFIX diff --git a/conda/artiq-kasli-master/meta.yaml b/conda/artiq-kasli-master/meta.yaml new file mode 100644 index 000000000..a25621b55 --- /dev/null +++ b/conda/artiq-kasli-master/meta.yaml @@ -0,0 +1,23 @@ +package: + name: artiq-kasli-master + version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} + +source: + git_url: ../.. + +build: + noarch: python + 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 Kasli DRTIO master' diff --git a/conda/artiq-kasli-satellite/build.sh b/conda/artiq-kasli-satellite/build.sh new file mode 100644 index 000000000..bae8ecedf --- /dev/null +++ b/conda/artiq-kasli-satellite/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +SOC_PREFIX=$SP_DIR/artiq/binaries/kasli-satellite +mkdir -p $SOC_PREFIX + +V=1 $PYTHON -m artiq.gateware.targets.kasli -V satellite +cp artiq_kasli/satellite/gateware/top.bit $SOC_PREFIX +cp artiq_kasli/satellite/software/bootloader/bootloader.bin $SOC_PREFIX +cp artiq_kasli/satellite/software/satman/satman.{elf,fbi} $SOC_PREFIX diff --git a/conda/artiq-kasli-satellite/meta.yaml b/conda/artiq-kasli-satellite/meta.yaml new file mode 100644 index 000000000..2a23d1bc4 --- /dev/null +++ b/conda/artiq-kasli-satellite/meta.yaml @@ -0,0 +1,23 @@ +package: + name: artiq-kasli-satellite + version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} + +source: + git_url: ../.. + +build: + noarch: python + 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 satellite manager for the Kasli DRTIO satellite'