-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstage0n_variables
62 lines (60 loc) · 1.55 KB
/
stage0n_variables
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
#!/bin/bash
# Define some common variables - those can be overwritten by
# environment variables. Currently only x86 is supported. Thus
# to build for 32 Bit instead of 64 Bit, export some variables
# before building:
#
# This matches i686 - Pentium II, 32 bit x86
#
# export TINYTARGET=i386-linux-musl
# export TINYCPU=i686
#
# This matches Raspberry Pi - currently under development
#
# export TINYTARGET=arm-linux-musleabihf
# export TINYARCH=arm
# export TINYCPU=armv6
# export CLFS_FPU=vfp
# export CLFS_FLOAT=hard
# export TINYBUILDDIR=/mnt/archiv/TinyCrossBuildPi
#
# This matches Banana Pi - currently under development
#
# export TINYTARGET=arm-linux-musleabihf
# export TINYARCH=arm
# export TINYCPU=armv7-a
# export CLFS_FPU=neon-vfpv4
# export CLFS_FLOAT=hard
# export TINYBUILDDIR=/mnt/archiv/TinyCrossBuildBPi
CLFS=/mnt/archiv/TinyCrossBuild
if [ -n "$TINYBUILDDIR" ] ; then
CLFS="$TINYBUILDDIR"
fi
export CLFS
SRCDIR=${CLFS}/src
if [ -n "$TINYSRCDIR" ] ; then
SRCDIR="$TINYSRCDIR"
fi
export SRCDIR
export CLFS_TARGET=x86_64-linux-musl
if [ -n "$TINYTARGET" ] ; then
export CLFS_TARGET="$TINYTARGET"
fi
export CLFS_CPU=k8
if [ -n "$TINYCPU" ] ; then
export CLFS_CPU="$TINYCPU"
fi
export CLFS_ARCH="x86"
if [ -n "$TINYARCH" ] ; then
export CLFS_ARCH="$TINYARCH"
if [ "$TINYARCH" = arm ] ; then
if [ -z "$CLFS_FPU" ] ; then
echo '***> FAILED. Please provide CLFS_FPU to specify your floating point unit!'
exit 1
fi
if [ -z "$CLFS_FLOAT" ] ; then
echo '***> FAILED. Please provide CLFS_FLOAT to specify your floating point type!'
exit 1
fi
fi
fi