configure: use long option names

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-15 16:13:42 +01:00
parent 713284a7c5
commit 8372b1653c
3 changed files with 19 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ sudo: required
install: |
cd "$TRAVIS_BUILD_DIR"
bash -x ./configure -t
bash -x ./configure --travis
script: |
cd "$TRAVIS_BUILD_DIR"

View File

@@ -344,7 +344,7 @@ See <<gem5-vs-qemu,like QEMU>> for a more thorough comparison.
For the most part, if you just add the `--gem5` option or `*-gem5` suffix to all commands and everything should magically work:
....
./configure -g && \
./configure --gem5 && \
./build-gem5 && \
./build-buildroot --gem5 && \
./run --gem5 &&\
@@ -8285,7 +8285,7 @@ There are two ways to run PARSEC with this repo:
====== PARSEC benchmark without parsecmgmt
....
./configure -gp && \
./configure --gem5 --parsec-benchmark && \
./build-buildroot --arch arm --buildroot-config 'BR2_PACKAGE_PARSEC_BENCHMARK=y' --gem5 && \
./run --arch arm --gem5 && \
:;

27
configure vendored
View File

@@ -8,24 +8,29 @@ qemu_given=false
submodules_dir=submodules
submodules=buildroot
y=
while getopts gpqt OPT; do
case "$OPT" in
g)
while [ $# -gt 0 ]; do
case "$1" in
--gem5)
gem5_given=true
;;
p)
shift
;;
--parsec-benchmark)
submodules="${submodules} parsec-benchmark"
;;
q)
;;
--qemu)
qemu_given=true
;;
t)
shift
;;
--travis)
interactive_pkgs=
y=-y
;;
;;
*)
echo 'unknown option' 1>&2
exit 2
;;
esac
done
shift $(($OPTIND - 1))
if "$gem5_given" && ! "$qemu_given"; then
qemu=false
fi