forked from laswick/arm-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
06_gdb
executable file
·51 lines (45 loc) · 805 Bytes
/
06_gdb
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
#!/bin/bash
#
# 06_gdb
#
# Rob Laswick
# May 3 2013
#
# Script to configure, build, and install gdb.
if [ $# -ne 3 ]; then
echo
echo
echo *** RUNNING SCRIPT STAND ALONE ***
echo
echo
WORKING_DIR=/home/rlaswick/engineering/arm-toolchain-build
PREFIX=/home/rlaswick/opt/arm-toolchain
NUM_CORES=1
else
WORKING_DIR=$1
PREFIX=$2
NUM_CORES=$3
fi
cd ${WORKING_DIR}/build/gdb
rm -rf build
mkdir build
cd build
../configure \
--target=arm-none-eabi \
--prefix=${PREFIX} \
--enable-interwork \
--enable-multilib \
--enable-tui \
--disable-nls \
--disable-libssp \
--with-gcc \
--with-gnu-as \
--with-gnu-ld \
--without-auto-load-safe-path || exit 1
make -j${NUM_CORES} || exit 1
make install || exit 1
echo
echo
echo
echo gdb built and installed successfully!
echo