-
Notifications
You must be signed in to change notification settings - Fork 0
/
_env-only.sh
executable file
·69 lines (60 loc) · 2.5 KB
/
_env-only.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
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
67
68
69
#!/bin/sh
#
# YAGARTO toolchain
#
# Copyright (C) 2006-2012 by Michael Fischer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
export target=arm-none-eabi
export prefix=$(pwd)/install
export MAKE=make
export addon_tools_dir=$(pwd)/addontools
mkdir -p $prefix
mkdir -p $addon_tools_dir
export PATH="$PATH:$prefix/bin"
#
# Check for MinGW/MSYS
#
export ABI_MODE=
if [ "$OSTYPE" == "msys" ]
then
export ABI_MODE='ABI=32'
else
export CC='gcc -m64'
fi
#---------------------------------------------------------------------------------
# Specify the version we will use
#---------------------------------------------------------------------------------
BINUTILS_VER=2.22
export GCC_VER=4.7.1
export NEWLIB_VER=1.20.0
GDB_VER=7.4.1
GMP_VER=5.0.4
MPFR_VER=2.4.2
EXPAT_VER=2.0.1
MPC_VER=0.8.1
#---------------------------------------------------------------------------------
# Specify the source we will use
#---------------------------------------------------------------------------------
export BINUTILS_SRC="binutils-$BINUTILS_VER"
export GCC_SRC="gcc-$GCC_VER"
export NEWLIB_SRC="newlib-$NEWLIB_VER"
export GDB_SRC="gdb-$GDB_VER"
export GMP_SRC="gmp-$GMP_VER"
export MPFR_SRC="mpfr-$MPFR_VER"
export EXPAT_SRC="expat-$EXPAT_VER"
export MPC_SRC="mpc-$MPC_VER"