diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-11-24 13:40:42 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-11-24 13:40:42 +0000 |
commit | 466200fcbef1656e55d2707bc610bd79c17075cb (patch) | |
tree | 0a0b79931774078c6cbd31e4fb2a88202ac452cc /baserock-bootstrap | |
parent | fbdc02b2cd221105b47fb13cc61bb0469f557333 (diff) | |
download | morph-466200fcbef1656e55d2707bc610bd79c17075cb.tar.gz |
Set JOBS based on available CPUs
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 4 |
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 |