blob: 0ef7969ccb24b4cbd889dd29986ca2e288ba1c90 (
plain)
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
|
#!/bin/bash
source ./common
options_do_configure=1
options_do_build=1
options_do_install=1
if [ "$1" = "-i" ]; then
options_do_configure=
options_do_build=
options_do_install=1
fi
mkdir -p build/binutils-$binutils_ver
cd build/binutils-$binutils_ver
if [ -n "$options_do_configure" ]; then
echo "Configuring binutils-${binutils_ver}"
../../unpacked/binutils-$binutils_ver/configure \
--prefix=$prefix_dir \
--target=$target \
--disable-multilib \
--with-float=soft \
--enable-soft-float \
>configure.log 2>&1
ret=$?
if [ $ret -ne 0 ]; then less configure.log; exit 1; fi
fi
if [ -n "$options_do_build" ]; then
echo "Building binutils-$binutils_ver"
make -j$jobs >build.log 2>&1
ret=$?
if [ $ret -ne 0 ]; then less build.log; exit 1; fi
fi
if [ -n "$options_do_install" ]; then
echo "Installing binutils-$binutils_ver"
make install >install.log 2>&1
ret=$?
if [ $ret -ne 0 ]; then less install.log; exit 1; fi
fi
if [ -z "$options_do_configure$options_do_build$options_do_install" ]; then
echo "Nothing to be done for binutils-$binutils_ver"
else
echo "Done with binutils-$binutils_ver"
fi
|