summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2015-10-30 08:04:39 (GMT)
committerAlexey Neyman <stilor@att.net>2015-10-30 08:23:53 (GMT)
commit319023c7afc4a48593240db4afe58ac57c4cc4a6 (patch)
tree291852127cee904f4e3598dea80a5e605aacf048 /scripts
parent55d8497fea996b070d8e7f6f6898e99e9981337a (diff)
Implement 'ct-ng source'.
Provides a simpler alternative to editing config to enable CT_ONLY_DOWNLOAD, doing ct-ng build and then restoring .config. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/crosstool-NG.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index ab654da..e29dea5 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -524,6 +524,9 @@ if [ -z "${CT_RESTART}" ]; then
[ ${CT_PARALLEL_JOBS} -gt 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${CT_PARALLEL_JOBS}"
JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}"
+ # Override 'download only' option
+ [ -n "${CT_SOURCE}" ] && CT_ONLY_DOWNLOAD=y
+
# Now that we've set up $PATH and $CT_CFLAGS_FOR_HOST, sanity test that gcc
# is runnable so that the user can troubleshoot problems if not.
CT_DoStep DEBUG "Checking that we can run gcc -v"