WebOS Internals PDK

From WebOS Internals
Revision as of 11:10, 5 January 2010 by Rboatright (talk | contribs) (create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Scratchbox 2 is a cross-compilation engine, it can be used to create a highly flexible SDK.

SB2 is totally distribution neutral. I develop it currently on Debian/sid. It's known to work at least on Debian, Ubuntu, Gentoo and Fedora. Both x86 and amd64 architectures are supported. PPC host support is possible, but not planned. Mac OS X is a potential platform as well, if you're interested in hacking on that, please contact lle at rahina dot org.

For target systems you can do anything that Qemu or sbrsh supports.

Homepage

http://www.freedesktop.org/wiki/Software/sbox2

License

Scratchbox 2 is distributed under LGPL version 2.1, portions are under GPL version 2. Some minor stuff is under MIT style license.

Source Releases

Version control: [1]

web interface to git repository

Tarballs

2009-04-01 sbox2-2.0.tar.bz2 md5sum: 21d3378868980c38d63dcfcb79e0e36d


Sample installation on Ubuntu for Palm Pre cross compiling

Ubuntu 9.10

sudo mkdir -p /srv/preware
cd /srv/preware
git clone git://git.webos-internals.org/preware/cross-compile.git
cd cross-compile
make toolchain
sudo apt-get install scratchbox2 qemu-kvm-extras
cd /srv/preware/cross-compile/toolchain/arm-2007q3/arm-none-linux-gnueabi/libc
PATH=/srv/preware/cross-compile/toolchain/arm-2007q3/bin:${PATH} sb2-init -c /usr/bin/qemu-arm armv7 arm-none-linux-gnueabi-gcc
mkdir -p /srv/preware/cross-compile/staging/armv7/usr/include
cd /srv/preware/cross-compile
make stage

Sample build of ScummVM

The following assumes you have copied your scummvm source into /srv/preware/cross-compile/packages

cd /srv/preware/cross-compile/packages/scummvm
make build