Skip to content

Commit 8372b16

Browse files
committed
configure: use long option names
1 parent 713284a commit 8372b16

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sudo: required
44

55
install: |
66
cd "$TRAVIS_BUILD_DIR"
7-
bash -x ./configure -t
7+
bash -x ./configure --travis
88
99
script: |
1010
cd "$TRAVIS_BUILD_DIR"

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ See <<gem5-vs-qemu,like QEMU>> for a more thorough comparison.
344344
For the most part, if you just add the `--gem5` option or `*-gem5` suffix to all commands and everything should magically work:
345345

346346
....
347-
./configure -g && \
347+
./configure --gem5 && \
348348
./build-gem5 && \
349349
./build-buildroot --gem5 && \
350350
./run --gem5 &&\
@@ -8285,7 +8285,7 @@ There are two ways to run PARSEC with this repo:
82858285
====== PARSEC benchmark without parsecmgmt
82868286

82878287
....
8288-
./configure -gp && \
8288+
./configure --gem5 --parsec-benchmark && \
82898289
./build-buildroot --arch arm --buildroot-config 'BR2_PACKAGE_PARSEC_BENCHMARK=y' --gem5 && \
82908290
./run --arch arm --gem5 && \
82918291
:;

configure

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,29 @@ qemu_given=false
88
submodules_dir=submodules
99
submodules=buildroot
1010
y=
11-
while getopts gpqt OPT; do
12-
case "$OPT" in
13-
g)
11+
while [ $# -gt 0 ]; do
12+
case "$1" in
13+
--gem5)
1414
gem5_given=true
15-
;;
16-
p)
15+
shift
16+
;;
17+
--parsec-benchmark)
1718
submodules="${submodules} parsec-benchmark"
18-
;;
19-
q)
19+
;;
20+
--qemu)
2021
qemu_given=true
21-
;;
22-
t)
22+
shift
23+
;;
24+
--travis)
2325
interactive_pkgs=
2426
y=-y
25-
;;
27+
;;
28+
*)
29+
echo 'unknown option' 1>&2
30+
exit 2
31+
;;
2632
esac
2733
done
28-
shift $(($OPTIND - 1))
2934
if "$gem5_given" && ! "$qemu_given"; then
3035
qemu=false
3136
fi

0 commit comments

Comments
 (0)