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]-
--force|--no-forceIf --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|--downloadIf --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-urlurlSet the URL of the GCC infrastructure downloads. Default http://www.netgull.com/gcc/infrastructure.
-
--infra-us -
--infra-uk -
--infra-jpSynonyms respectively for infrastructure URLs in the USA, UK and Japan
-
--gmp|--no-gmp -
--mpfr|--no-mpfr -
--mpc|--no-mpc -
--isl|--no-isl -
--cloog|--no-cloogDownload, 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-urloption. By default all components are downloaded. -
--help|-hPrint 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.