Created
September 30, 2008 23:31
-
-
Save felipec/13986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
download_dir=/tmp/sb | |
sb_base_url=http://scratchbox.org/download/files/sbox-releases/apophis/tarball | |
sb=/opt/scratchbox | |
target=armv7 | |
sb_base_dir=$(dirname $sb) | |
mkdir -p $download_dir | |
function setup() | |
{ | |
wget -c -P $download_dir $sb_base_url/$1 | |
sudo tar -xf $download_dir/$1 -C $sb_base_dir | |
} | |
setup scratchbox-core-1.0.17-i386.tar.gz | |
setup scratchbox-libs-1.0.17-i386.tar.gz | |
setup scratchbox-devkit-qemu-0.12.50-0sb3-i386.tar.gz | |
setup scratchbox-toolchain-cs2009q1-eglibc2.8-armv7-1.0.15-9-i386.tar.gz | |
sudo $sb/run_me_first.sh | |
sudo $sb/sbin/sbox_adduser $USER yes | |
$sb/tools/bin/sb-conf setup $target --force --compiler="cs2009q1-eglibc2.8-armv7" --devkits="qemu" --cputransp="qemu-arm-sb" | |
$sb/tools/bin/sb-conf select $target | |
$sb/tools/bin/sb-conf install $target --clibrary --devkits --fakeroot --etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment