Scratchbox 2 has a little build quirk to document on Slack (other distribs untested)
THESE INSTRUCTIONS ARE FOR
SLACKWARE 13.1 64 (but apply to other systems), adjust the fine details to your favourite OS flavour
To get the final init to build
Code:
"sb2-init {TargetName} /PATH-TO-X-COMPILER/bin/arm-none-linux-gnueabi-gcc"
the application realpath is required
so a quick step by step:
SITE:
scratchbox2 link:
http://maemo.gitorious.org/scratchbox2
please replace the paths with relevant stuff for your system.
WARNING THESE INSTRUCTIONS MAY MAKE YOUR COMPUTER MUTATE AND YOUR FACE EXPLODE - USE THEM AT YOUR OWN RISK...
We presume here that you have already got the Code Sourcery toolchain, if you haven't search the forum for the info. (I may just add it here). Knowing WHERE it is IS required for the next section. thanks.
some directions:
mkdir $HOME/REPOS
# (if you don't already have one, we store our repository copies here)
cd $HOME/REPOS
# (went there)
git clone git://gitorious.org/scratchbox2/scratchbox2.git
# Got the repo
git clone https://github.com/dtjm/realpath.git
# For the required path resolver
# you could curl -LO
http://github.com/dtjm/realpath/raw/master/realpath.c or wget or w/e I suppose
cd $HOME/REPOS/realpth
gcc -o realpath realpath.c
# build it
sudo install -m0755 realpath /usr/local/bin
# install it to wherever- if you don't have sudo perhaps just do it su and check the access afterward from the account you need it from to be double-sure it worked. clearly put it somewhere in your $PATH. That should make the sb2-init go through with no pain.
cd $HOME/REPOS/scratchbox2
# now do something with SB2
mkdir $HOME/buildroot
# (or w/e location you want to actually have the content build in, I chose kindle-buildroot)
cd $HOME/buildroot
cp -a /ABSOLUTE-PATH-TO-CODE-SOURCERY-TOOL-CHAIN/arm-none-linux-gnueabi/libc/{lib,etc,usr} .
# note the period "." at the end, that matters
# this command copies the target rootfs contents into the buildroot dir for the sb2-init phase.
sb2-init my_target arm-none-linux-gnueabi-gcc
# that actual command has to have a FULLY qualified path to the compiler it would seem
# FOR EXAMPLE the command:
# sb2-init kindle /home/twobob/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
# completed successfully
if all is well you should get a
"sb2-init completed successfully, have fun!"
There is also reference to fakeroot
I simply installed via gslapt using this REPO
http://slackware.schoepfer.info/13.1_64/
if you have a different version than me just go hunt one down
Hope that helps someone. Let me know if that's not clear or if this is the wrong place for such info.
Or if I missed some critical detail again let me know.
Thanks