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.tar.gz
rockbox-475e68851de5fe097d5436a9e4f1063c79d4a1a6.zip
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 3257d524ec..a3bacce9ee 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -153,6 +153,8 @@ gccver="4.0.3" # default gcc version
153binutils="2.16.1" # The binutils version to use 153binutils="2.16.1" # The binutils version to use
154gccconfigure="" #default is nothing added to configure 154gccconfigure="" #default is nothing added to configure
155binutilsconf="" #default is nothing added to configure 155binutilsconf="" #default is nothing added to configure
156gcctarget="" #default make target
157gccinstalltarget="install" #default install target
156 158
157system=`uname -s` 159system=`uname -s`
158gccurl="http://www.rockbox.org/gcc" 160gccurl="http://www.rockbox.org/gcc"
@@ -185,6 +187,16 @@ case $arch in
185 target="arm-elf" 187 target="arm-elf"
186 gccpatch="rockbox-multilibs-arm-elf-gcc-4.0.3_3.diff" 188 gccpatch="rockbox-multilibs-arm-elf-gcc-4.0.3_3.diff"
187 ;; 189 ;;
190 [Ee])
191 target="arm-elf-eabi"
192 gccpatch="rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff"
193 binutilsconf="--disable-werror"
194 gccver="4.4.2"
195 # needed to build a bare-metal gcc-4.4.2
196 gcctarget="all-gcc all-target-libgcc"
197 gccinstalltarget="install-gcc install-target-libgcc"
198 binutils="2.20"
199 ;;
188 [Ii]) 200 [Ii])
189 target="mipsel-elf" 201 target="mipsel-elf"
190 gccver="4.1.2" 202 gccver="4.1.2"
@@ -313,9 +325,9 @@ echo "ROCKBOXDEV: gcc/configure"
313# recent Ubuntu installations 325# recent Ubuntu installations
314CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure 326CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure
315echo "ROCKBOXDEV: gcc/make" 327echo "ROCKBOXDEV: gcc/make"
316$make 328$make $gcctarget
317echo "ROCKBOXDEV: gcc/make install to $prefix/$target" 329echo "ROCKBOXDEV: gcc/make install to $prefix/$target"
318$make install 330$make $gccinstalltarget
319cd .. # get out of build-gcc 331cd .. # get out of build-gcc
320cd .. # get out of $builddir 332cd .. # get out of $builddir
321 333
@@ -326,6 +338,7 @@ echo "Select target arch:"
326echo "s - sh (Archos models)" 338echo "s - sh (Archos models)"
327echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)" 339echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)"
328echo "a - arm (ipods, iriver H10, Sansa, etc)" 340echo "a - arm (ipods, iriver H10, Sansa, etc)"
341echo "e - arm-eabi (same as above, new testing toolchain)"
329echo "i - mips (Jz4740 and ATJ-based players)" 342echo "i - mips (Jz4740 and ATJ-based players)"
330echo "separate multiple targets with spaces" 343echo "separate multiple targets with spaces"
331echo "(Example: \"s m a\" will build sh, m86k and arm)" 344echo "(Example: \"s m a\" will build sh, m86k and arm)"
@@ -353,6 +366,10 @@ case $arch in
353 buildone $arch 366 buildone $arch
354 cleardir $builddir $arch 367 cleardir $builddir $arch
355 ;; 368 ;;
369 [Ee])
370 buildone $arch
371 cleardir $builddir $arch
372 ;;
356 *) 373 *)
357 echo "An unsupported architecture option: $arch" 374 echo "An unsupported architecture option: $arch"
358 exit 375 exit