提交 74878fb6 编写于 作者: P Paul E. McKenney

rcutorture: Add --kmake-arg argument to kvm.sh

This commit adds the --kmake-arg to kvm.sh, which allows passing in
things like "V=1" to see the build commands, as well as enabling the
CROSS_COMPILE= make macro used for cross-building.
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
上级 73931b5e
...@@ -60,7 +60,7 @@ then ...@@ -60,7 +60,7 @@ then
exit 2 exit 2
fi fi
ncpus=`cpus2use.sh` ncpus=`cpus2use.sh`
make O=$builddir -j$ncpus > $builddir/Make.out 2>&1 make O=$builddir -j$ncpus $RCU_KMAKE_ARG > $builddir/Make.out 2>&1
retval=$? retval=$?
if test $retval -ne 0 || grep "rcu[^/]*": < $builddir/Make.out | egrep -q "Stop|Error|error:|warning:" || egrep -q "Stop|Error|error:" < $builddir/Make.out if test $retval -ne 0 || grep "rcu[^/]*": < $builddir/Make.out | egrep -q "Stop|Error|error:|warning:" || egrep -q "Stop|Error|error:" < $builddir/Make.out
then then
......
...@@ -34,6 +34,7 @@ dur=30 ...@@ -34,6 +34,7 @@ dur=30
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
builddir="${KVM}/b1" builddir="${KVM}/b1"
RCU_INITRD="$KVM/initrd"; export RCU_INITRD RCU_INITRD="$KVM/initrd"; export RCU_INITRD
RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG
resdir="" resdir=""
configs="" configs=""
ds=`date +%Y.%m.%d-%H:%M:%S` ds=`date +%Y.%m.%d-%H:%M:%S`
...@@ -48,6 +49,7 @@ usage () { ...@@ -48,6 +49,7 @@ usage () {
echo " --datestamp string" echo " --datestamp string"
echo " --duration minutes" echo " --duration minutes"
echo " --interactive" echo " --interactive"
echo " --kmake-arg kernel-make-arguments"
echo " --kversion vN.NN" echo " --kversion vN.NN"
echo " --mac nn:nn:nn:nn:nn:nn" echo " --mac nn:nn:nn:nn:nn:nn"
echo " --no-initrd" echo " --no-initrd"
...@@ -114,6 +116,11 @@ do ...@@ -114,6 +116,11 @@ do
--interactive) --interactive)
RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE
;; ;;
--kmake-arg)
checkarg --kmake-arg "(kernel make arguments)" $# "$2" '.*' '^error$'
RCU_KMAKE_ARG="$2"; export RCU_KMAKE_ARG
shift
;;
--kversion) --kversion)
checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error' checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error'
kversion=$2 kversion=$2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册