summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre GRANDIN <grandinp@altern.org>2015-03-12 16:30:49 -0700
committerPierre GRANDIN <grandinp@altern.org>2015-03-12 16:30:49 -0700
commitef71397873ccc2506c7c89c0589fdd5a6759e81d (patch)
tree05e62b0043180ddf8d7df1d37d773d32efa7bad7
parent097d56d1b9c3507888dccac835713b3ba15e2b0f (diff)
downloadnavit-ef71397873ccc2506c7c89c0589fdd5a6759e81d.tar.gz
Update make_navit
-rw-r--r--make_navit24
1 files changed, 22 insertions, 2 deletions
diff --git a/make_navit b/make_navit
index 7e35109a7..bd56838ca 100644
--- a/make_navit
+++ b/make_navit
@@ -1,6 +1,27 @@
#!/bin/bash
set -vx
+# Install steps from http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation#Installing_Maemo_5_SDK_using_Text-based_Installer
+
+sudo echo "deb http://scratchbox.org/debian/ hathor main" >> /etc/apt/sources.list
+sudo apt-get update
+sudo apt-get install scratchbox-core scratchbox-devkit-apt-https scratchbox-devkit-autotools-legacy scratchbox-devkit-debian-squeeze scratchbox-devkit-doctools scratchbox-devkit-git scratchbox-devkit-perl scratchbox-devkit-python-legacy scratchbox-devkit-qemu scratchbox-devkit-svn scratchbox-libs scratchbox-toolchain-cs2007q3-glibc2.5-arm7 scratchbox-toolchain-cs2007q3-glibc2.5-i486 scratchbox-toolchain-host-gcc
+
+
+wget http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
+sed -i -e 's/etch/squeeze/g' maemo-sdk-install_5.0.sh
+sudo /scratchbox/sbin/sbox_adduser ubuntu
+# bash maemo-sdk-install_5.0.sh
+cat > /scratchbox/users/ubuntu/home/ubuntu/setup.sh << EOF
+apt-get install devscripts
+sb-conf select FREMANTLE_ARMEL
+echo "deb http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries" >> /etc/apt/sources.list
+apt-get update
+fakeroot apt-get install -y --force-yes nokia-binaries nokia-apps
+EOF
+
+/scratchbox/login bash ~/setup.sh
+
# check for ssh-key
#if ! ssh-add -l|grep bb:05; then
# echo "Make sure to have a valid ssh key in ssh agent, otherwise the upload might break"
@@ -8,9 +29,8 @@ set -vx
#fi
#cleanup and checkout navit
-cd navit
echo "preparing build..."
-if ../build-scripts/prepare-build > prepare-build.log 2> prepare-build.err; then
+if bash ./build-scripts/prepare-build > prepare-build.log 2> prepare-build.err; then
echo ...succeded
else
echo ...failed