From 7d1cd165211ded30e22a7184d0ef615543c40d60 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 25 May 2006 23:44:51 +0000 Subject: 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 --- tools/rockboxdev.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tools/rockboxdev.sh') 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 -- cgit v1.2.3