Minor tweaks to install.sh.

This commit is contained in:
Rob Landley 2017-05-14 15:10:29 -05:00
parent aa1a5d2798
commit cf6a235279
2 changed files with 2 additions and 3 deletions

View File

@ -115,7 +115,7 @@ if [ ! -z "$AIRLOCK" ]
then
# Tools needed to build packages
for i in ar as nm cc make ld gcc objdump $PENDING $HOST_EXTRA
for i in $TOOLCHAIN $PENDING $HOST_EXTRA
do
if [ ! -f "$i" ]
then

View File

@ -13,8 +13,7 @@ UNSTRIPPED="generated/unstripped/$(basename "$OUTNAME")"
# Since each cc invocation is short, launch half again as many processes
# as we have processors so they don't exit faster than we can start them.
[ -z "$CPUS" ] &&
CPUS=$((($(echo /sys/devices/system/cpu/cpu[0-9]* | wc -w)*3)/2))
[ -z "$CPUS" ] && CPUS=$(($(nproc)+1))
if [ -z "$SED" ]
then