mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
configure: use long option names
This commit is contained in:
@@ -4,7 +4,7 @@ sudo: required
|
||||
|
||||
install: |
|
||||
cd "$TRAVIS_BUILD_DIR"
|
||||
bash -x ./configure -t
|
||||
bash -x ./configure --travis
|
||||
|
||||
script: |
|
||||
cd "$TRAVIS_BUILD_DIR"
|
||||
|
||||
@@ -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
27
configure
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user