diff options
author | Rob Landley <rob@landley.net> | 2018-10-27 10:54:18 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-10-27 10:54:18 -0500 |
commit | c9571603db299259bca8271917688455696c14ce (patch) | |
tree | adbc53fbb6bae99e18ecabab22e73a8d72b52485 /scripts | |
parent | 71984f3e28827549aad5b77939cdeeb62382ecb0 (diff) | |
download | toybox-c9571603db299259bca8271917688455696c14ce.tar.gz |
Fix "make distclean defconfig toybox" all on one line (good of $CROSS_COMPILER
changed), better error message when .config missing.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/make.sh b/scripts/make.sh index a1fdb343..32e0825c 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -14,8 +14,7 @@ source ./configure [ -z "$OUTNAME" ] && OUTNAME=toybox 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. +# Try to keep one more cc invocation going than we have processors [ -z "$CPUS" ] && CPUS=$(($(nproc)+1)) if [ -z "$SED" ] @@ -90,18 +89,20 @@ genbuildsh() echo "#!/bin/sh" echo - echo "BUILD='$BUILD'" + echo "PATH='$PATH'" echo - echo "FILES='$LIBFILES $TOYFILES'" + echo "BUILD='$BUILD'" echo echo "LINK='$LINK'" echo + echo "FILES='$LIBFILES $TOYFILES'" + echo echo echo '$BUILD $FILES $LINK' } -if ! cmp -s <(genbuildsh | head -n 3) \ - <(head -n 3 generated/build.sh 2>/dev/null) +if ! cmp -s <(genbuildsh | head -n 7) \ + <(head -n 7 generated/build.sh 2>/dev/null) then echo -n "Library probe" |