summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-11-20 10:27:53 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-11-20 10:27:53 +0000
commit475e68851de5fe097d5436a9e4f1063c79d4a1a6 (patch)
tree0082bbfcfc6987416d7f7c3af6370f5a6261ce8f
parent19eb26a2d75c6af6eb08bc22c72d269a9b198eb5 (diff)
downloadrockbox-475e68851de5fe097d5436a9e4f1063c79d4a1a6.zip
rockbox-475e68851de5fe097d5436a9e4f1063c79d4a1a6.tar.gz
rockbox-475e68851de5fe097d5436a9e4f1063c79d4a1a6.tar.bz2
rockbox-475e68851de5fe097d5436a9e4f1063c79d4a1a6.tar.xz
Add arm-elf-eabi target to rockboxdev.sh, selected with "e".
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23676 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/rockboxdev.sh21
1 files changed, 19 insertions, 2 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 3257d52..a3bacce 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -153,6 +153,8 @@ gccver="4.0.3" # default gcc version
binutils="2.16.1" # The binutils version to use
gccconfigure="" #default is nothing added to configure
binutilsconf="" #default is nothing added to configure
+gcctarget="" #default make target
+gccinstalltarget="install" #default install target
system=`uname -s`
gccurl="http://www.rockbox.org/gcc"
@@ -185,6 +187,16 @@ case $arch in
target="arm-elf"
gccpatch="rockbox-multilibs-arm-elf-gcc-4.0.3_3.diff"
;;
+ [Ee])
+ target="arm-elf-eabi"
+ gccpatch="rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff"
+ binutilsconf="--disable-werror"
+ gccver="4.4.2"
+ # needed to build a bare-metal gcc-4.4.2
+ gcctarget="all-gcc all-target-libgcc"
+ gccinstalltarget="install-gcc install-target-libgcc"
+ binutils="2.20"
+ ;;
[Ii])
target="mipsel-elf"
gccver="4.1.2"
@@ -313,9 +325,9 @@ echo "ROCKBOXDEV: gcc/configure"
# recent Ubuntu installations
CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure
echo "ROCKBOXDEV: gcc/make"
-$make
+$make $gcctarget
echo "ROCKBOXDEV: gcc/make install to $prefix/$target"
-$make install
+$make $gccinstalltarget
cd .. # get out of build-gcc
cd .. # get out of $builddir
@@ -326,6 +338,7 @@ 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 "e - arm-eabi (same as above, new testing toolchain)"
echo "i - mips (Jz4740 and ATJ-based players)"
echo "separate multiple targets with spaces"
echo "(Example: \"s m a\" will build sh, m86k and arm)"
@@ -353,6 +366,10 @@ case $arch in
buildone $arch
cleardir $builddir $arch
;;
+ [Ee])
+ buildone $arch
+ cleardir $builddir $arch
+ ;;
*)
echo "An unsupported architecture option: $arch"
exit