blob: 3e2ef555831fdeda5ea031d69f08eb8b8d05ab0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
.TH sb2 1 "11 September 2007" "2.0" "sb2 man page"
.SH NAME
sb2 \- crosscompiling environment
.SH SYNOPSIS
.B sb2
[ \-R ] [ \-v ] [ \-d ] [ \-h ] [ \-t TARGET ] [ \-e ] [ \-m MODE ] [ -s DIRECTORY] [command] [arguments] [...]
.SH DESCRIPTION
.B sb2
Runs command in scratchbox2. If no command is given, a bash shell
in scratchbox2 environment is started.
.SH OPTIONS
.TP
\-v
Display version number.
.TP
\-R
Execute commands in fakeroot environment.
.TP
\-d
Output all path mappings to $HOME/sb2_mapping.log.
.TP
\-h
Print help.
.TP
\-t
Define target to use. Use sb2-config -d TARGET to set a default.
.TP
\-e
Use emulation mode, avoid executing ANY host binaries except qemu.
.TP
\-m
Use mapping mode given in argument.
.TP
\-s
Use redirection rules from the directory given in argument.
.SH 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.
.SH CONFIGURATION
To configure sb2, do something like this:
.nf
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
.fi
To change default scratchbox2 target:
sb2-config -d another_target
.SH FILES
.P
.I ~/.scratchbox2/config
.SH SEE ALSO
.BR gcc (1),
.BR ld (1),
.BR fakeroot (1),
No known bugs at this time.
.SH AUTHOR
.nf
Riku Voipio
.fi
|