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: | install: |
cd "$TRAVIS_BUILD_DIR" cd "$TRAVIS_BUILD_DIR"
bash -x ./configure -t bash -x ./configure --travis
script: | script: |
cd "$TRAVIS_BUILD_DIR" 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: 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-gem5 && \
./build-buildroot --gem5 && \ ./build-buildroot --gem5 && \
./run --gem5 &&\ ./run --gem5 &&\
@@ -8285,7 +8285,7 @@ There are two ways to run PARSEC with this repo:
====== PARSEC benchmark without parsecmgmt ====== PARSEC benchmark without parsecmgmt
.... ....
./configure -gp && \ ./configure --gem5 --parsec-benchmark && \
./build-buildroot --arch arm --buildroot-config 'BR2_PACKAGE_PARSEC_BENCHMARK=y' --gem5 && \ ./build-buildroot --arch arm --buildroot-config 'BR2_PACKAGE_PARSEC_BENCHMARK=y' --gem5 && \
./run --arch arm --gem5 && \ ./run --arch arm --gem5 && \
:; :;

27
configure vendored
View File

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