2018-02-22 15:22:22 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-04-03 19:36:31 +08:00
|
|
|
set -e
|
|
|
|
|
2018-05-25 16:41:55 +08:00
|
|
|
SOC_PREFIX=$PREFIX/site-packages/artiq/binaries/${ARTIQ_TARGET}-${ARTIQ_VARIANT}
|
2018-02-22 15:22:22 +08:00
|
|
|
mkdir -p ${SOC_PREFIX}
|
|
|
|
|
|
|
|
V=1 $PYTHON -m artiq.gateware.targets.${ARTIQ_TARGET} -V ${ARTIQ_VARIANT}
|
|
|
|
cp artiq_${ARTIQ_TARGET}/${ARTIQ_VARIANT}/gateware/top.bit ${SOC_PREFIX}
|
|
|
|
cp artiq_${ARTIQ_TARGET}/${ARTIQ_VARIANT}/software/bootloader/bootloader.bin ${SOC_PREFIX}
|
2018-04-03 19:36:40 +08:00
|
|
|
if [ -e artiq_${ARTIQ_TARGET}/${ARTIQ_VARIANT}/software/runtime ]
|
|
|
|
then cp artiq_${ARTIQ_TARGET}/${ARTIQ_VARIANT}/software/runtime/runtime.{elf,fbi} ${SOC_PREFIX}
|
|
|
|
else cp artiq_${ARTIQ_TARGET}/${ARTIQ_VARIANT}/software/satman/satman.{elf,fbi} ${SOC_PREFIX}
|
|
|
|
fi
|