-
Notifications
You must be signed in to change notification settings - Fork 11
/
build-arm-linux-toolchain.sh
executable file
·41 lines (35 loc) · 1.63 KB
/
build-arm-linux-toolchain.sh
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
#/usr/bin/sh
###############################################################################
## ##
## Script to build GCC toolchain for Linux ARM architectures ##
## ##
##---------------------------------------------------------------------------##
## File: build-arm-linux-toolchain.sh ##
## Author: Ulrich Becker <[email protected]> ##
## Company: GSI Helmholtz Centre for Heavy Ion Research GmbH ##
## Date: 07.06.2019 ##
## Revision: ##
###############################################################################
#TARGET="arm-linux-gnueabi"
#TARGET="arm-unknown-linux-gnueabi"
TARGET=arm-gsi-linux-gnueabi
ENABLE_CPP=true
#if [ ! -n "$SYSROOT" ]
#then
# echo "ERROR: No system root directory defined in variable \"SYSROOT\"!" 1>&2
# exit 1
#fi
#if [ ! -d "$SYSROOT" ]
#then
# echo "ERROR: System root defined in variable \"SYSROOT\" doesn't exist: \"$SYSROOT\"!" 1>&2
# exit 1
#fi
#SYSROOT_ARG="--with-sysroot=$SYSROOT"
ADDITIONAL_FIRST_STAGE_CONFIG_ARGS=$ADDDITIONAL_CONFIG_ARGS
ADDITIONAL_SECOND_STAGE_CONFIG_ARGS="$SYSROOT_ARG $ADDDITIONAL_CONFIG_ARGS"
make_third_stage()
{
[ $VERBOSE ] && echo "INFO: Nothing additional work for target $TARGET in third stage."
}
source build-toolchain.sh
#=================================== EOF ======================================