summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rockboxdev.sh17
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
69 [Ss]) 69 [Ss])
70 target="sh-elf" 70 target="sh-elf"
71 gccver="4.0.3" 71 gccver="4.0.3"
72 gccurl="http://www.rockbox.org/twiki/pub/Main/CrossCompiler"
73 gccpatch="gcc-4.0.3-rockbox-1.diff"
72 ;; 74 ;;
73 [Mm]) 75 [Mm])
74 target="m68k-elf" 76 target="m68k-elf"
@@ -93,6 +95,9 @@ bindir="$prefix/$target/bin"
93echo "Summary:" 95echo "Summary:"
94echo "Target: $target" 96echo "Target: $target"
95echo "gcc $gccver" 97echo "gcc $gccver"
98if test -n "$gccpatch"; then
99 echo "gcc patch $gccpatch"
100fi
96echo "binutils $binutils" 101echo "binutils $binutils"
97echo "install in $prefix/$target" 102echo "install in $prefix/$target"
98echo "" 103echo ""
@@ -111,6 +116,13 @@ else
111 getfile gcc-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver 116 getfile gcc-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver
112fi 117fi
113 118
119if test -n "$gccpatch"; then
120 if test -f "$dlwhere/$gccpatch"; then
121 echo "$gccpatch already downloaded"
122 else
123 getfile "$gccpatch" "$gccurl"
124 fi
125fi
114 126
115mkdir build-rbdev 127mkdir build-rbdev
116cd build-rbdev 128cd build-rbdev
@@ -119,6 +131,11 @@ tar xjf $dlwhere/binutils-$binutils.tar.bz2
119echo "extracting gcc" 131echo "extracting gcc"
120tar xf $dlwhere/gcc-$gccver.tar.bz2 132tar xf $dlwhere/gcc-$gccver.tar.bz2
121 133
134if test -n "$gccpatch"; then
135 echo "applying gcc patch"
136 patch -p0 < "$dlwhere/$gccpatch"
137fi
138
122mkdir build-binu 139mkdir build-binu
123cd build-binu 140cd build-binu
124../binutils-$binutils/configure --target=$target --prefix=$prefix/$target 141../binutils-$binutils/configure --target=$target --prefix=$prefix/$target