summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-07-10 06:08:12 (GMT)
committerAlexey Neyman <stilor@att.net>2017-07-10 06:08:12 (GMT)
commitfd522eed500576a6e62431724314858e120679c6 (patch)
tree7868fa7f06af8a35ef9de54544fa55658482cd09 /scripts/build/cc
parent64d5c254c7ea6b0e8dbccd01cafaa8d8d1aa3906 (diff)
Resolve a few more TBDs
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 2f0d3f7..6019b35 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -14,10 +14,11 @@ do_cc_get() {
# GCC source tree, which will not be there unless we get it and
# put it there ourselves
if [ "${CT_CC_LANG_JAVA_USE_ECJ}" = "y" ]; then
- # TBD check return code
- CT_GetFile ecj-latest .jar http://mirrors.kernel.org/sourceware/java/ \
- ftp://gcc.gnu.org/pub/java \
- ftp://sourceware.org/pub/java
+ if ! CT_GetFile ecj-latest .jar $(CT_Mirrors sourceware java); then
+ # Should be a package, too - but with Java retirement in GCC,
+ # it may not make sense.
+ CT_Abort "Failed to download ecj-latest.jar"
+ fi
fi
}