summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-08-10 06:46:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-08-10 06:46:56 +0000
commit19fe37de6fb63c8d6a8891e095f8b1fde18514eb (patch)
tree6c70e8f7944a96c15ba85ca4a533df7433ff87d1
parent23d68989cf372efe6428600f911f9f9b6bde2ec5 (diff)
downloadrockbox-19fe37de6fb63c8d6a8891e095f8b1fde18514eb.tar.gz
rockbox-19fe37de6fb63c8d6a8891e095f8b1fde18514eb.zip
make the script echo more about what it is doing (with a ROCKBOXDEV: prefix)
to ease debugging when things go wrong somewhere git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10507 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/rockboxdev.sh28
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
171fi 171fi
172 172
173echo "extracting binutils" 173echo "ROCKBOXDEV: extracting binutils-$binutils in $builddir"
174tar xjf $dlwhere/binutils-$binutils.tar.bz2 174tar xjf $dlwhere/binutils-$binutils.tar.bz2
175echo "extracting gcc" 175echo "ROCKBOXDEV: extracting gcc-$gccver in $builddir"
176tar xjf $dlwhere/gcc-$gccver.tar.bz2 176tar xjf $dlwhere/gcc-$gccver.tar.bz2
177 177
178if test -n "$gccpatch"; then 178if 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"
181fi 181fi
182 182
183echo "ROCKBOXDEV: mkdir build-binu"
183mkdir build-binu 184mkdir build-binu
185echo "ROCKBOXDEV: cd build-binu"
184cd build-binu 186cd build-binu
187echo "ROCKBOXDEV: binutils/configure"
185../binutils-$binutils/configure --target=$target --prefix=$prefix/$target 188../binutils-$binutils/configure --target=$target --prefix=$prefix/$target
189echo "ROCKBOXDEV: binutils/make"
186make 190make
191echo "ROCKBOXDEV: binutils/make install to $prefix/$target"
187make install 192make install
188cd .. # get out of build-binu 193cd .. # get out of build-binu
189PATH="${PATH}:$bindir" 194PATH="${PATH}:$bindir"
190SHELL=/bin/sh # seems to be needed by the gcc build in some cases 195SHELL=/bin/sh # seems to be needed by the gcc build in some cases
191 196
197echo "ROCKBOXDEV: mkdir build-gcc"
192mkdir build-gcc 198mkdir build-gcc
199echo "ROCKBOXDEV: cd build-gcc"
193cd build-gcc 200cd build-gcc
201echo "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
203echo "ROCKBOXDEV: gcc/make"
195make 204make
205echo "ROCKBOXDEV: gcc/make install to $prefix/$target"
196make install 206make install
197cd .. # get out of build-gcc 207cd .. # get out of build-gcc
198cd .. # get out of $builddir 208cd .. # get out of $builddir
@@ -202,9 +212,9 @@ cd .. # get out of $builddir
202 212
203echo "" 213echo ""
204echo "Select target arch:" 214echo "Select target arch:"
205echo "s - sh" 215echo "s - sh (Archos models)"
206echo "m - m68k" 216echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)"
207echo "a - arm" 217echo "a - arm (ipods, iriver H10, Sansa, etc)"
208echo "all - all three compilers" 218echo "all - all three compilers"
209 219
210arch=`input` 220arch=`input`