diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-11-20 10:27:53 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-11-20 10:27:53 +0000 |
commit | 475e68851de5fe097d5436a9e4f1063c79d4a1a6 (patch) | |
tree | 0082bbfcfc6987416d7f7c3af6370f5a6261ce8f /tools | |
parent | 19eb26a2d75c6af6eb08bc22c72d269a9b198eb5 (diff) | |
download | rockbox-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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rockboxdev.sh | 21 |
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 | |||
153 | binutils="2.16.1" # The binutils version to use | 153 | binutils="2.16.1" # The binutils version to use |
154 | gccconfigure="" #default is nothing added to configure | 154 | gccconfigure="" #default is nothing added to configure |
155 | binutilsconf="" #default is nothing added to configure | 155 | binutilsconf="" #default is nothing added to configure |
156 | gcctarget="" #default make target | ||
157 | gccinstalltarget="install" #default install target | ||
156 | 158 | ||
157 | system=`uname -s` | 159 | system=`uname -s` |
158 | gccurl="http://www.rockbox.org/gcc" | 160 | gccurl="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 |
314 | CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure | 326 | CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure |
315 | echo "ROCKBOXDEV: gcc/make" | 327 | echo "ROCKBOXDEV: gcc/make" |
316 | $make | 328 | $make $gcctarget |
317 | echo "ROCKBOXDEV: gcc/make install to $prefix/$target" | 329 | echo "ROCKBOXDEV: gcc/make install to $prefix/$target" |
318 | $make install | 330 | $make $gccinstalltarget |
319 | cd .. # get out of build-gcc | 331 | cd .. # get out of build-gcc |
320 | cd .. # get out of $builddir | 332 | cd .. # get out of $builddir |
321 | 333 | ||
@@ -326,6 +338,7 @@ echo "Select target arch:" | |||
326 | echo "s - sh (Archos models)" | 338 | echo "s - sh (Archos models)" |
327 | echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)" | 339 | echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)" |
328 | echo "a - arm (ipods, iriver H10, Sansa, etc)" | 340 | echo "a - arm (ipods, iriver H10, Sansa, etc)" |
341 | echo "e - arm-eabi (same as above, new testing toolchain)" | ||
329 | echo "i - mips (Jz4740 and ATJ-based players)" | 342 | echo "i - mips (Jz4740 and ATJ-based players)" |
330 | echo "separate multiple targets with spaces" | 343 | echo "separate multiple targets with spaces" |
331 | echo "(Example: \"s m a\" will build sh, m86k and arm)" | 344 | echo "(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 |