summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-02-22 08:25:36 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-07 19:03:17 (GMT)
commit69df9ae9ddb806b42d962ae8a0b2b8f7b31f480e (patch)
tree5e23600df2ad384e15b1c6131e3e235993a6d4b6 /scripts
parentdbe3877285549d1cdc549826673cdf8f07cf154c (diff)
Remove the need for configure substitutions in scripts
... so that scripts/ directory can be installed verbatim. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/.gitignore3
-rw-r--r--scripts/crosstool-NG.sh (renamed from scripts/crosstool-NG.sh.in)4
-rw-r--r--scripts/saveSample.sh (renamed from scripts/saveSample.sh.in)0
-rw-r--r--scripts/scripts.mk (renamed from scripts/scripts.mk.in)8
4 files changed, 6 insertions, 9 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore
deleted file mode 100644
index 553a363..0000000
--- a/scripts/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-crosstool-NG.sh
-saveSample.sh
-scripts.mk
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh
index 878681a..4d79e48 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh
@@ -563,8 +563,8 @@ if [ -z "${CT_RESTART}" ]; then
CT_PARALLEL_JOBS="${CT_JOBS}"
fi
# Use the number of processors+1 when automatically setting the number of
- # parallel jobs. Fall back to 1 if the host doesn't use GLIBC.
- AUTO_JOBS=$((`@@CT_cpucount@@ 2>/dev/null || echo 0` + 1))
+ # parallel jobs.
+ AUTO_JOBS=$[ BUILD_NCPUS + 1 ]
[ ${CT_PARALLEL_JOBS} -eq 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${AUTO_JOBS}"
[ ${CT_PARALLEL_JOBS} -gt 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${CT_PARALLEL_JOBS}"
JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}"
diff --git a/scripts/saveSample.sh.in b/scripts/saveSample.sh
index 5fab6d9..5fab6d9 100644
--- a/scripts/saveSample.sh.in
+++ b/scripts/saveSample.sh
diff --git a/scripts/scripts.mk.in b/scripts/scripts.mk
index 99b9d76..d77f1a7 100644
--- a/scripts/scripts.mk.in
+++ b/scripts/scripts.mk
@@ -31,11 +31,11 @@ ifneq ($(strip $(V)),2)
curl_silent_opt = --silent
endif
-ifneq (@@CT_wget@@,)
-download_cmd = wget --passive-ftp $(wget_silent_opt) -O $@
+ifneq ($(CT_wget),)
+download_cmd = $(CT_wget) --passive-ftp $(wget_silent_opt) -O $@
else
-ifneq (@@CT_curl@@,)
-download_cmd = curl --ftp-pasv $(curl_silent_opt) -o $@
+ifneq ($(CT_curl),)
+download_cmd = $(CT_curl) --ftp-pasv $(curl_silent_opt) -o $@
else
download_cmd = $(error wget or curl needed for downloads)
endif