File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
tree=" $1 "
4
- if [ " $# " -ne " 1" -o -z " $tree " -o ! -e " $tree /configure" ]
4
+ if [ " $# " -lt " 1" -o -z " $tree " -o ! -e " $tree /configure" ]
5
5
then
6
6
cat << -tac
7
- USAGE: ` basename " $0 " ` <path to binutils source tree>
7
+ USAGE: ` basename " $0 " ` <path to binutils source tree> [configuration flag]...
8
8
9
9
Note that source tarballs to not include the simulator (run command);
10
10
for that, you must clone the full binutils-gdb repository.
11
11
tac
12
12
exit 1
13
13
fi
14
+ shift
14
15
15
- exec " $tree /configure" --prefix=/usr/local --target=riscv32 --with-arch=rv32i --disable-gdb --disable-gold --disable-gprof --disable-gprofng
16
+ exec " $tree /configure" --prefix=/usr/local --target=riscv32 --with-arch=rv32i --disable-gdb --disable-gold --disable-gprof --disable-gprofng " $@ "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
tree=" $1 "
4
- if [ " $# " -ne " 1" -o -z " $tree " -o ! -e " $tree /configure" ]
4
+ if [ " $# " -lt " 1" -o -z " $tree " -o ! -e " $tree /configure" ]
5
5
then
6
- echo " USAGE: ` basename " $0 " ` <path to gcc source tree>"
6
+ echo " USAGE: ` basename " $0 " ` <path to gcc source tree> [configuration flag]... "
7
7
exit 1
8
8
elif [ ! -e " $tree /bfd" -o ! -e " $tree /binutils" -o ! -e " $tree /gas" -o ! -e " $tree /gnulib" -o ! -e " $tree /ld" -o ! -e " $tree /libctf" -o ! -e " $tree /libsframe" -o ! -e " $tree /opcodes" ]
9
9
then
21
21
tac
22
22
exit 2
23
23
fi
24
+ shift
24
25
25
- exec " $tree /configure" --prefix=/usr/local --target=riscv32-elf --with-arch=rv32i --program-prefix=riscv32- --disable-libssp --enable-languages=c --without-headers
26
+ exec " $tree /configure" --prefix=/usr/local --target=riscv32-elf --with-arch=rv32i --program-prefix=riscv32- --disable-libssp --enable-languages=c --without-headers " $@ "
You can’t perform that action at this time.
0 commit comments