summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2013-01-27 16:54:19 (GMT)
committerSamuel Martin <s.martin49@gmail.com>2013-01-27 16:54:19 (GMT)
commit338c1b46421e9364e260273a4b49f6f78d434bf1 (patch)
tree8558bbe2e3365dac403236006411d79b1daab714
parentdd25744cc01d30bf74678d26a53098402d0a2adf (diff)
script: allow to pass any float value for CT_LOAD
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <b51acf21c72b4a8e882e.1359320015@laptop> Patchwork-Id: 216062
-rw-r--r--config/global/build-behave.in16
-rw-r--r--scripts/crosstool-NG.sh.in2
2 files changed, 8 insertions, 10 deletions
diff --git a/config/global/build-behave.in b/config/global/build-behave.in
index c98e0fa..9ad5438 100644
--- a/config/global/build-behave.in
+++ b/config/global/build-behave.in
@@ -19,19 +19,17 @@ config PARALLEL_JOBS
Enter 0 to set automatically based on how many processors the host has.
config LOAD
- int
+ string
prompt "Maximum allowed load" if ! BACKEND
- default 0
+ default ""
help
Specifies that no new jobs should be started if there are others jobs
running and the load average is at least this value.
-
- Makes sense on SMP machines only.
-
- Enter 0 to have no limit on the load average.
-
- Note: only the integer part of the load is allowed here (you can't enter
- 0.75 for example).
+
+ Leave to empty for no load limit.
+
+ Note: any float value is allowed and will be passed to the '-l' option
+ of make (for further details, refer to the make manpage).
config USE_PIPES
bool
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 49b34a9..177676c 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -516,7 +516,7 @@ if [ -z "${CT_RESTART}" ]; then
AUTO_JOBS=$((`getconf _NPROCESSORS_ONLN 2> /dev/null || echo 0` + 1))
[ ${CT_PARALLEL_JOBS} -eq 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${AUTO_JOBS}"
[ ${CT_PARALLEL_JOBS} -gt 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${CT_PARALLEL_JOBS}"
- [ ${CT_LOAD} -ne 0 ] && JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}"
+ JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}"
# 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.