1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Daniel Stenberg 2006-08-10 06:46:56 +00:00
parent 23d68989cf
commit 19fe37de6f

View file

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