diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-05-25 23:44:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-25 23:44:51 +0000 |
commit | 7d1cd165211ded30e22a7184d0ef615543c40d60 (patch) | |
tree | 707587983c9e155109f0d129cc4e15f1babf4b24 /tools/rockboxdev.sh | |
parent | db1cda87a664c00d26d2f7d63b78c11fe01035b6 (diff) |
for sh, get and apply the proper rockbox patch as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9992 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-x | tools/rockboxdev.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 302bb57672..b5a13cb9df 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh @@ -69,6 +69,8 @@ case $arch in [Ss]) target="sh-elf" gccver="4.0.3" + gccurl="http://www.rockbox.org/twiki/pub/Main/CrossCompiler" + gccpatch="gcc-4.0.3-rockbox-1.diff" ;; [Mm]) target="m68k-elf" @@ -93,6 +95,9 @@ bindir="$prefix/$target/bin" echo "Summary:" echo "Target: $target" echo "gcc $gccver" +if test -n "$gccpatch"; then + echo "gcc patch $gccpatch" +fi echo "binutils $binutils" echo "install in $prefix/$target" echo "" @@ -111,6 +116,13 @@ else getfile gcc-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver fi +if test -n "$gccpatch"; then + if test -f "$dlwhere/$gccpatch"; then + echo "$gccpatch already downloaded" + else + getfile "$gccpatch" "$gccurl" + fi +fi mkdir build-rbdev cd build-rbdev @@ -119,6 +131,11 @@ tar xjf $dlwhere/binutils-$binutils.tar.bz2 echo "extracting gcc" tar xf $dlwhere/gcc-$gccver.tar.bz2 +if test -n "$gccpatch"; then + echo "applying gcc patch" + patch -p0 < "$dlwhere/$gccpatch" +fi + mkdir build-binu cd build-binu ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target |