sb2

Langue: en

Autres versions - même langue

Version: 315185 (ubuntu - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

sb2 - crosscompiling environment

SYNOPSIS

sb2 [ -R ] [ -v ] [ -d ] [ -h ] [ -t TARGET ] [ -e ] [ -m MODE ] [ -s DIRECTORY] [command] [arguments] [...]

DESCRIPTION

sb2 Runs command in scratchbox2. If no command is given, a bash shell in scratchbox2 environment is started.

OPTIONS

-v
Display version number.
-R
Execute commands in fakeroot environment.
-d
Output all path mappings to $HOME/sb2_mapping.log.
-h
Print help.
-t
Define target to use. Use sb2-config -d TARGET to set a default.
-e
Use emulation mode, avoid executing ANY host binaries except qemu.
-m
Use mapping mode given in argument.
-s
Use redirection rules from the directory given in argument.
-S file
Create a persistent session: Write session information to "file"
-J file
Join a persistent session.
-D file
Delete a persistent session. Warning: this does not check if the session is still in use!

ENVIRONMENT

There are quite many environment variables being used. Since sb2 is still very volatile, the best documentation is in the source of sb2 script itself.

CONFIGURATION

To configure sb2, do something like this:
 mkdir $HOME/buildroot
 cd $HOME/buildroot
 [fetch a rootfs from somewhere and extract it here]
 sb2-init /path/to/cross-compiler/bin/arm-linux-gcc
 

To change default scratchbox2 target:

sb2-config -d another_target

FILES

~/.scratchbox2/config

SEE ALSO

gcc(1), ld(1), fakeroot(1), No known bugs at this time.

AUTHOR

 Riku Voipio