summaryrefslogtreecommitdiffstats
path: root/tools
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 /tools
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
Diffstat (limited to 'tools')
-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() {
tool=`findtool wget`
if test -n "$tool"; then
# wget download
- echo "download $2/$1 using wget"
+ echo "ROCKBOXDEV: downloads $2/$1 using wget"
$tool -O $dlwhere/$1 $2/$1
fi
else
# curl download
- echo "download $2/$1 using curl"
+ echo "ROCKBOXDEV: downloads $2/$1 using curl"
$tool -Lo $dlwhere/$1 $2/$1
fi
if test -z "$tool"; then
- echo "couldn't find downloader tool to use!"
+ echo "ROCKBOXDEV: couldn't find downloader tool to use!"
exit
fi
@@ -170,29 +170,39 @@ if test -n "$gccpatch"; then
fi
fi
-echo "extracting binutils"
+echo "ROCKBOXDEV: extracting binutils-$binutils in $builddir"
tar xjf $dlwhere/binutils-$binutils.tar.bz2
-echo "extracting gcc"
+echo "ROCKBOXDEV: extracting gcc-$gccver in $builddir"
tar xjf $dlwhere/gcc-$gccver.tar.bz2
if test -n "$gccpatch"; then
- echo "applying gcc patch"
+ echo "ROCKBOXDEV: applying gcc patch"
patch -p0 < "$dlwhere/$gccpatch"
fi
+echo "ROCKBOXDEV: mkdir build-binu"
mkdir build-binu
+echo "ROCKBOXDEV: cd build-binu"
cd build-binu
+echo "ROCKBOXDEV: binutils/configure"
../binutils-$binutils/configure --target=$target --prefix=$prefix/$target
+echo "ROCKBOXDEV: binutils/make"
make
+echo "ROCKBOXDEV: binutils/make install to $prefix/$target"
make install
cd .. # get out of build-binu
PATH="${PATH}:$bindir"
SHELL=/bin/sh # seems to be needed by the gcc build in some cases
+echo "ROCKBOXDEV: mkdir build-gcc"
mkdir build-gcc
+echo "ROCKBOXDEV: cd build-gcc"
cd build-gcc
+echo "ROCKBOXDEV: gcc/configure"
../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c
+echo "ROCKBOXDEV: gcc/make"
make
+echo "ROCKBOXDEV: gcc/make install to $prefix/$target"
make install
cd .. # get out of build-gcc
cd .. # get out of $builddir
@@ -202,9 +212,9 @@ cd .. # get out of $builddir
echo ""
echo "Select target arch:"
-echo "s - sh"
-echo "m - m68k"
-echo "a - arm"
+echo "s - sh (Archos models)"
+echo "m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)"
+echo "a - arm (ipods, iriver H10, Sansa, etc)"
echo "all - all three compilers"
arch=`input`