Show the correct cache sizes for the apollo core.
[AROS.git] / scripts / nightly / setup
blobaf68a132bba8e30971d225b1e49affe3f9a3b33a
1 # Import configuration
2 source $SP/cfg/defaults
3 source $SP/cfg/$CFG_NAME
5 # Determine version
6 VERSION=$(date -u +"%Y%m%d")
7 BASENAME=AROS-$VERSION
9 # Setup important paths
10 ROOT=$(pwd)
12 SOURCE_ROOT=$ROOT/Source
13 SOURCE_AROS=$SOURCE_ROOT/AROS
14 SOURCE_CONTRIB=$SOURCE_ROOT/Contrib
15 SOURCE_DOCS=$SOURCE_ROOT/Documentation
17 BUILD_ROOT=$ROOT/Build
18 BUILD_BASE=$BUILD_ROOT/$VERSION
20 ARCHIVE_ROOT=$ROOT/Archive
21 ARCHIVE_BASE=$ARCHIVE_ROOT/$VERSION
23 PORTSSOURCES_ROOT=$ROOT/PortsSources
24 TOOLCHAIN_BASE=$BUILD_BASE/Toolchain
26 # Setup log paths
27 LOG_BASE=$ARCHIVE_BASE/logs/$CFG_NAME
28 LOG_ALL=$LOG_BASE/all.log
29 LOG_THIS=/dev/null
31 # Figure out the host platform
32 HOST_OS=$(uname)
33 case $HOST_OS in
34     Linux)
35         HOST_OS=linux
36         ;;
37     FreeBSD)
38         HOST_OS=freebsd
39         ;;
40 esac
41         
42 HOST_CPU=$(uname -m)
43 case $HOST_CPU in
44     i?86)
45         HOST_CPU=i386
46         ;;
47     ppc)
48         HOST_CPU=ppc
49         ;;
50 esac
53 # Figure out the build tools
54 if [[ $HOST_OS == "freebsd" ]]; then
55     alias make='execute gmake'
56 else
57     alias make='execute make'
60 alias makedir='execute mkdir -p'
61 alias  delete='execute rm -rf'
62 alias    copy='execute cp -pRL'
63 alias    move='execute mv -f'
65 export CC=$CFG_CC
66 export PYTHON=$CFG_PYTHON
67 MAKE_JOBS=$CFG_MAKE_JOBS
68 PORTSSOURCESOPT=""
69 AROSTOOLCHAININSTALLOPT=""
70 AROSTOOLCHAINOPT=""
72 # Enable --with-portssources ?
73 if [[ "$CFG_PORTSSOURCES_ENABLE" == "yes" ]]; then
74     PORTSSOURCESOPT="--with-portssources=$PORTSSOURCES_ROOT"
77 # Enable --with-aros-toolchain ?
78 if [[ "$CFG_PREBUILD_TOOLCHAIN_PACKAGE" != "none" ]]; then
79     AROSTOOLCHAININSTALLOPT="--with-aros-toolchain-install=$TOOLCHAIN_BASE"
80     AROSTOOLCHAINOPT="--with-aros-toolchain=yes"
84 # Initial setup, if requested
85 if [[ $1 == "initial" ]]; then
86     # Setup directories if needed
87     rm -rf $BUILD_BASE $ARCHIVE_BASE
88     mkdir -p $BUILD_ROOT $BUILD_BASE
89     mkdir -p $ARCHIVE_BASE
90     mkdir -p $LOG_BASE
91     
92     if [ ! -f $LOG_ALL ]; then
93         touch $LOG_ALL
94     fi
97 # Import functions
98 source $SP/functions