diff --git a/.travis.yml b/.travis.yml index ad1c8a6a..d546786a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,9 @@ env: - PACKAGE=prjxray # XXX riscv32 toolchain: disabled as fails to build # PACKAGE=riscv32/binutils + # symbiflow toolchain + - PACKAGE=symbiflow-toolchain + - PACKAGE=symbiflow-xc7a50t # verilog tools - PACKAGE=icestorm - PACKAGE=iverilog diff --git a/symbiflow-toolchain/build.sh b/symbiflow-toolchain/build.sh new file mode 100644 index 00000000..d9b2cf15 --- /dev/null +++ b/symbiflow-toolchain/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e +set -x + +if [ x"$TRAVIS" = xtrue ]; then + CPU_COUNT=2 +fi + +wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/15/20200608-212841/symbiflow-arch-defs-install-32defbb3.tar.xz | tar -xJ + +BIN_DIR=${PREFIX}/bin +SHARE_DIR=${PREFIX}/share/symbiflow + +mkdir -p $SHARE_DIR + +cp -r install/share/scripts $SHARE_DIR +cp -r install/share/techmaps $SHARE_DIR +cp -r install/bin/* $BIN_DIR/ diff --git a/symbiflow-toolchain/meta.yaml b/symbiflow-toolchain/meta.yaml new file mode 100644 index 00000000..d5832ced --- /dev/null +++ b/symbiflow-toolchain/meta.yaml @@ -0,0 +1,21 @@ +{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('v','') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %} + +package: + name: symbiflow-toolchain + version: {{ version }} + +source: + git_url: https://github.com/SymbiFlow/conda-packages.git + git_rev: master + +build: + # number: 201803050325 + number: {{ environ.get('DATE_NUM') }} + # string: 20180305_0325 + string: {{ environ.get('DATE_STR') }} + script_env: + - CI + - TRAVIS + +about: + summary: 'Conda package containing the Symbiflow binary toolchain.' diff --git a/symbiflow-xc7a50t/build.sh b/symbiflow-xc7a50t/build.sh new file mode 100644 index 00000000..a261d790 --- /dev/null +++ b/symbiflow-xc7a50t/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e +set -x + +if [ x"$TRAVIS" = xtrue ]; then + CPU_COUNT=2 +fi + +wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/15/20200608-212841/symbiflow-arch-defs-install-32defbb3.tar.xz | tar -xJ + +SHARE_DIR=${PREFIX}/share/symbiflow + +mkdir -p $SHARE_DIR + +cp -r install/share/symbiflow/arch/xc7a50t_test $SHARE_DIR/arch/ diff --git a/symbiflow-xc7a50t/meta.yaml b/symbiflow-xc7a50t/meta.yaml new file mode 100644 index 00000000..9febda5c --- /dev/null +++ b/symbiflow-xc7a50t/meta.yaml @@ -0,0 +1,21 @@ +{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('v','') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %} + +package: + name: symbiflow-xc7a50t + version: {{ version }} + +source: + git_url: https://github.com/SymbiFlow/conda-packages.git + git_rev: master + +build: + # number: 201803050325 + number: {{ environ.get('DATE_NUM') }} + # string: 20180305_0325 + string: {{ environ.get('DATE_STR') }} + script_env: + - CI + - TRAVIS + +about: + summary: 'Conda package containing the xc7a50t architecture definition.'