Skip to content

Commit dae63bd

Browse files
committedJan 21, 2016
conda: add artiq-kc705-nist_clock
1 parent 18f0ee8 commit dae63bd

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
 

Diff for: ‎conda/artiq-kc705-nist_clock/build.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
BUILD_SETTINGS_FILE=$HOME/.m-labs/build_settings.sh
4+
[ -f $BUILD_SETTINGS_FILE ] && . $BUILD_SETTINGS_FILE
5+
6+
SOC_PREFIX=$PREFIX/lib/python3.5/site-packages/artiq/binaries/kc705-clock
7+
mkdir -p $SOC_PREFIX
8+
9+
$PYTHON -m artiq.gateware.targets.kc705 -H clock --toolchain vivado $MISOC_EXTRA_VIVADO_CMDLINE
10+
cp misoc_nist_clock_kc705/gateware/top.bit $SOC_PREFIX
11+
cp misoc_nist_clock_kc705/software/bios/bios.bin $SOC_PREFIX
12+
cp misoc_nist_clock_kc705/software/runtime/runtime.fbi $SOC_PREFIX
13+
14+
wget -P $SOC_PREFIX https://raw.githubusercontent.com/jordens/bscan_spi_bitstreams/master/bscan_spi_xc7k325t.bit

Diff for: ‎conda/artiq-kc705-nist_clock/meta.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package:
2+
name: artiq-kc705-nist_clock
3+
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }}
4+
5+
source:
6+
path: ../..
7+
8+
build:
9+
noarch_python: true
10+
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
11+
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
12+
13+
requirements:
14+
build:
15+
# We don't get meaningful GIT_DESCRIBE_* values until before conda installs build dependencies.
16+
- artiq 0.0
17+
- migen 0.2
18+
- misoc 0.1
19+
- llvm-or1k
20+
- binutils-or1k-linux
21+
run:
22+
- 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 "" }}
23+
24+
about:
25+
home: http://m-labs.hk/artiq
26+
license: GPL
27+
summary: 'Bitstream, BIOS and runtime for NIST_QC2 on the KC705 board'

0 commit comments

Comments
 (0)
Please sign in to comment.