download script - adapteva/epiphany-sdk GitHub Wiki

From release 2014.08, the Epiphany build system comes with a comprehensive download script. Its general usage is:

./download-toolchain.sh [--force | --no-force]
                        [--clone | --download]
                        [--infra-url <url> | --infra-us |
                         --infra-uk | --infra-jp]
                        [--gmp | --no-gmp]
                        [--mpfr | --no-mpfr]
                        [--mpc | --no-mpc]
                        [--isl | --no-isl]
                        [--cloog | --no-cloog]
                        [--help | -h]

Arguments to the download script

  • --force | --no-force

    If --force is specified, attempt to remove the existing repository before cloning or downloading. If the removal fails, the old version will be used, but a warning printed. Default --no-force.

  • --clone | --download

    If --clone is specified, attempt to clone the repository, otherwise if --download is specified, attempt to download a ZIP file of the repository. Default --download.

  • --infra-url url

    Set the URL of the GCC infrastructure downloads. Default http://www.netgull.com/gcc/infrastructure.

  • --infra-us

  • --infra-uk

  • --infra-jp

    Synonyms respectively for infrastructure URLs in the USA, UK and Japan

  • --gmp | --no-gmp

  • --mpfr | --no-mpfr

  • --mpc | --no-mpc

  • --isl | --no-isl

  • --cloog | --no-cloog

    Download, or (with the --no- prefix) don't download the corresponding GCC infrastructure component. The components are downloaded from the infrastructure URL, which may be changed by the --infra-url option. By default all components are downloaded.

  • --help | -h

    Print out a brief help about this script and return with an error code.

Note that earlier versions allowed specification of a location where the tools were to be downloaded. However recent versions do not download the SDK directory, so the script will only work if downloading is done in a fixed location relative to the pre-existing SDK directory (which contains this script).

The script returns 1 on failure and 0 on success. Failure to delete a pre-existing version when specifying --force is not considered a failure.

⚠️ **GitHub.com Fallback** ⚠️