aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-10-07 12:06:17 -0500
committerRob Landley <rob@landley.net>2019-10-07 12:06:17 -0500
commiteb63b11ebf9295eff3c0be2afa9dffe4126e6265 (patch)
tree6471270a356db341edd18332508f95af112e0413 /scripts
parent3d0bb23d74f7ce3555dee6545a1e805aaf3d360e (diff)
downloadtoybox-eb63b11ebf9295eff3c0be2afa9dffe4126e6265.tar.gz
Better comments and help text.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mcm-buildall.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/mcm-buildall.sh b/scripts/mcm-buildall.sh
index 7197f8d3..21e650e2 100755
--- a/scripts/mcm-buildall.sh
+++ b/scripts/mcm-buildall.sh
@@ -1,11 +1,18 @@
#!/bin/bash
-# Script to build all supported cross and native compilers using
-# https://github.com/richfelker/musl-cross-make
-# (Check that out and run this script in that directory.)
-
+# Script to build all cross and native compilers supported by musl-libc.
# This isn't directly used by toybox, but is useful for testing.
+if [ ! -d litecross ]
+then
+ echo Run this script in musl-cross-make directory to make "ccc" directory.
+ echo
+ echo " "git clone https://github.com/richfelker/musl-cross-make
+ echo " "cd musl-cross-make
+ echo ' ~/toybox/scripts/mcm-buildall.sh'
+ exit 1
+fi
+
# All toolchains after the first are themselves cross compiled (so they
# can be statically linked against musl on the host, for binary portability.)
# static i686 binaries are basically "poor man's x32".
@@ -135,8 +142,10 @@ then
make_tuple "$i"
done
else
+ # Here's the list of cross compilers supported by this build script.
+
# First target builds a proper version of the $BOOTSTRAP compiler above,
- # used to build the rest (which are in alphabetical order)
+ # which is used to build the rest (in alphabetical order)
for i in i686:: \
aarch64:eabi: armv4l:eabihf:"--with-arch=armv5t --with-float=soft" \
armv5l:eabihf:--with-arch=armv5t armv7l:eabihf:--with-arch=armv7-a \