-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
whitequark
committed
Oct 22, 2015
1 parent
8374e8d
commit 026504e
Showing
5 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/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 | ||
mkdir -p $SOC_PREFIX/nist_qc1 | ||
|
||
SOC_ROOT=$PWD/soc | ||
|
||
# build bitstream | ||
|
||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 $MISOC_EXTRA_VIVADO_CMDLINE build-bitstream) | ||
cp $MSCDIR/build/artiq_kc705-nist_qc1-kc705.bit $SOC_PREFIX/ | ||
wget http://sionneau.net/artiq/binaries/kc705/flash_proxy/bscan_spi_kc705.bit | ||
mv bscan_spi_kc705.bit $SOC_PREFIX/ | ||
|
||
# build BIOS | ||
|
||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 build-headers build-bios) | ||
cp $MSCDIR/software/bios/bios.bin $SOC_PREFIX/ | ||
|
||
# build runtime | ||
|
||
make -C soc/runtime clean runtime.fbi | ||
cp soc/runtime/runtime.fbi $SOC_PREFIX/nist_qc1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package: | ||
name: artiq-kc705-nist_qc1 | ||
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} | ||
|
||
source: | ||
git_url: https://github.com/m-labs/artiq | ||
git_tag: master | ||
|
||
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.0 | ||
- 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: 3-clause BSD | ||
summary: 'Bitstream, BIOS and runtime for NIST_QC1 on the KC705 board' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/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 | ||
mkdir -p $SOC_PREFIX/nist_qc2 | ||
|
||
SOC_ROOT=$PWD/soc | ||
|
||
# build bitstream | ||
|
||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 -s NIST_QC2 $MISOC_EXTRA_VIVADO_CMDLINE build-bitstream) | ||
cp $MSCDIR/build/artiq_kc705-nist_qc2-kc705.bit $SOC_PREFIX/ | ||
wget http://sionneau.net/artiq/binaries/kc705/flash_proxy/bscan_spi_kc705.bit | ||
mv bscan_spi_kc705.bit $SOC_PREFIX/ | ||
|
||
# build BIOS | ||
|
||
(cd $MSCDIR; $PYTHON make.py -X $SOC_ROOT -t artiq_kc705 -s NIST_QC2 build-headers build-bios) | ||
cp $MSCDIR/software/bios/bios.bin $SOC_PREFIX/ | ||
|
||
# build runtime | ||
|
||
make -C soc/runtime clean runtime.fbi | ||
cp soc/runtime/runtime.fbi $SOC_PREFIX/nist_qc2/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package: | ||
name: artiq-kc705-nist_qc2 | ||
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} | ||
|
||
source: | ||
git_url: https://github.com/m-labs/artiq | ||
git_tag: master | ||
|
||
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.0 | ||
- 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: 3-clause BSD | ||
summary: 'Bitstream, BIOS and runtime for NIST_QC2 on the KC705 board' |