diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rockboxdev.sh | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 2a0a8ecd42..5f75428dfa 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh | |||
@@ -43,16 +43,16 @@ getfile() { | |||
43 | tool=`findtool wget` | 43 | tool=`findtool wget` |
44 | if test -n "$tool"; then | 44 | if test -n "$tool"; then |
45 | # wget download | 45 | # wget download |
46 | echo "download $2/$1 using wget" | 46 | echo "ROCKBOXDEV: downloads $2/$1 using wget" |
47 | $tool -O $dlwhere/$1 $2/$1 | 47 | $tool -O $dlwhere/$1 $2/$1 |
48 | fi | 48 | fi |
49 | else | 49 | else |
50 | # curl download | 50 | # curl download |
51 | echo "download $2/$1 using curl" | 51 | echo "ROCKBOXDEV: downloads $2/$1 using curl" |
52 | $tool -Lo $dlwhere/$1 $2/$1 | 52 | $tool -Lo $dlwhere/$1 $2/$1 |
53 | fi | 53 | fi |
54 | if test -z "$tool"; then | 54 | if test -z "$tool"; then |
55 | echo "couldn't find downloader tool to use!" | 55 | echo "ROCKBOXDEV: couldn't find downloader tool to use!" |
56 | exit | 56 | exit |
57 | fi | 57 | fi |
58 | 58 | ||
@@ -170,29 +170,39 @@ if test -n "$gccpatch"; then | |||
170 | fi | 170 | fi |
171 | fi | 171 | fi |
172 | 172 | ||
173 | echo "extracting binutils" | 173 | echo "ROCKBOXDEV: extracting binutils-$binutils in $builddir" |
174 | tar xjf $dlwhere/binutils-$binutils.tar.bz2 | 174 | tar xjf $dlwhere/binutils-$binutils.tar.bz2 |
175 | echo "extracting gcc" | 175 | echo "ROCKBOXDEV: extracting gcc-$gccver in $builddir" |
176 | tar xjf $dlwhere/gcc-$gccver.tar.bz2 | 176 | tar xjf $dlwhere/gcc-$gccver.tar.bz2 |
177 | 177 | ||
178 | if test -n "$gccpatch"; then | 178 | if test -n "$gccpatch"; then |
179 | echo "applying gcc patch" | 179 | echo "ROCKBOXDEV: applying gcc patch" |
180 | patch -p0 < "$dlwhere/$gccpatch" | 180 | patch -p0 < "$dlwhere/$gccpatch" |
181 | fi | 181 | fi |
182 | 182 | ||
183 | echo "ROCKBOXDEV: mkdir build-binu" | ||
183 | mkdir build-binu | 184 | mkdir build-binu |
185 | echo "ROCKBOXDEV: cd build-binu" | ||
184 | cd build-binu | 186 | cd build-binu |
187 | echo "ROCKBOXDEV: binutils/configure" | ||
185 | ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target | 188 | ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target |
189 | echo "ROCKBOXDEV: binutils/make" | ||
186 | make | 190 | make |
191 | echo "ROCKBOXDEV: binutils/make install to $prefix/$target" | ||
187 | make install | 192 | make install |
188 | cd .. # get out of build-binu | 193 | cd .. # get out of build-binu |
189 | PATH="${PATH}:$bindir" | 194 | PATH="${PATH}:$bindir" |
190 | SHELL=/bin/sh # seems to be needed by the gcc build in some cases | 195 | SHELL=/bin/sh # seems to be needed by the gcc build in some cases |
191 | 196 | ||
197 | echo "ROCKBOXDEV: mkdir build-gcc" | ||
192 | mkdir build-gcc | 198 | mkdir build-gcc |
199 | echo "ROCKBOXDEV: cd build-gcc" | ||
193 | cd build-gcc | 200 | cd build-gcc |
201 | echo "ROCKBOXDEV: gcc/configure" | ||
194 | ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c | 202 | ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c |
203 | echo "ROCKBOXDEV: gcc/make" | ||
195 | make | 204 | make |
205 | echo "ROCKBOXDEV: gcc/make install to $prefix/$target" | ||
196 | make install | 206 | make install |
197 | cd .. # get out of build-gcc | 207 | cd .. # get out of build-gcc |
198 | cd .. # get out of $builddir | 208 | cd .. # get out of $builddir |
@@ -202,9 +212,9 @@ cd .. # get out of $builddir | |||
202 | 212 | ||
203 | echo "" | 213 | echo "" |
204 | echo "Select target arch:" | 214 | echo "Select target arch:" |
205 | echo "s - sh" | 215 | echo "s - sh (Archos models)" |
206 | echo "m - m68k" | 216 | echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)" |
207 | echo "a - arm" | 217 | echo "a - arm (ipods, iriver H10, Sansa, etc)" |
208 | echo "all - all three compilers" | 218 | echo "all - all three compilers" |
209 | 219 | ||
210 | arch=`input` | 220 | arch=`input` |