summaryrefslogtreecommitdiff
path: root/baserock-bootstrap
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-24 13:40:42 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-24 13:40:42 +0000
commit466200fcbef1656e55d2707bc610bd79c17075cb (patch)
tree0a0b79931774078c6cbd31e4fb2a88202ac452cc /baserock-bootstrap
parentfbdc02b2cd221105b47fb13cc61bb0469f557333 (diff)
downloadmorph-466200fcbef1656e55d2707bc610bd79c17075cb.tar.gz
Set JOBS based on available CPUs
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-xbaserock-bootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap
index 873f4d97..33af4dbe 100755
--- a/baserock-bootstrap
+++ b/baserock-bootstrap
@@ -10,7 +10,9 @@ sources="$LFS/sources"
tools="$LFS/tools"
SNAPSHOT="$1"
-JOBS=12
+JOBS=$((echo -n '1.5*'; grep -c '^processor' /proc/cpuinfo) |
+ bc -lq |
+ sed 's/\..*//')
export LC_ALL=C
export LFS_TGT=$(uname -m)-lfs-linux-gnu