summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-09-07 22:01:29 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-09-07 22:01:29 +0000
commit9228a38168e99c4e69511f8326fd64e6f78a839c (patch)
tree02f68882335e5828df04648be30d4e92917e1db0
parent11eff09e70a14ca0d9531bce119814da36d47f46 (diff)
downloadrockbox-9228a38168e99c4e69511f8326fd64e6f78a839c.zip
rockbox-9228a38168e99c4e69511f8326fd64e6f78a839c.tar.gz
rockbox-9228a38168e99c4e69511f8326fd64e6f78a839c.tar.bz2
rockbox-9228a38168e99c4e69511f8326fd64e6f78a839c.tar.xz
Allow arbitrary compiler combinations in rockboxdev.sh by specifying a list of compilers to build. Remove "all" selection in favor of that (FS#9372).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18444 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/rockboxdev.sh33
1 files changed, 13 insertions, 20 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 016fc65..13cc257 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -197,7 +197,7 @@ else
pathadd="$bindir"
fi
-mkdir $builddir
+mkdir -p $builddir
cd $builddir
summary="summary-$1"
@@ -291,12 +291,15 @@ echo "Select target arch:"
echo "s - sh (Archos models)"
echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)"
echo "a - arm (ipods, iriver H10, Sansa, etc)"
-echo "all - all three compilers above"
echo "i - mips (Jz4740 and ATJ-based players)"
+echo "separate multiple targets with spaces"
+echo "(i.e. \"s m a\" will build sh, m86k and arm)"
echo ""
-arch=`input`
+selarch=`input`
+for arch in $selarch
+do
echo ""
case $arch in
[Ss])
@@ -311,30 +314,20 @@ case $arch in
[Aa])
buildone $arch
;;
- all)
- echo "Building all compilers..."
- echo ""
- buildone s
- cleardir $builddir
-
- buildone m
- cleardir $builddir
-
- buildone a
-
- # include this when we want MIPS added in the "build all"
- #buildone i
-
- # show the summaries:
- cat $builddir/summary-*
- ;;
*)
echo "An unsupported architecture option: $arch"
exit
;;
esac
+echo "Cleaning up build folder"
+cleardir $builddir
echo ""
echo "Done!"
echo ""
echo "Make your PATH include $pathadd"
+
+done
+
+# show the summaries:
+cat $builddir/summary-*