|
@@ -94,9 +94,17 @@ fi
|
|
# CONFIG_YENTA=n
|
|
# CONFIG_YENTA=n
|
|
if kvm-build.sh $config_template $builddir $T
|
|
if kvm-build.sh $config_template $builddir $T
|
|
then
|
|
then
|
|
|
|
+ QEMU="`identify_qemu $builddir/vmlinux`"
|
|
|
|
+ BOOT_IMAGE="`identify_boot_image $QEMU`"
|
|
cp $builddir/Make*.out $resdir
|
|
cp $builddir/Make*.out $resdir
|
|
cp $builddir/.config $resdir
|
|
cp $builddir/.config $resdir
|
|
- cp $builddir/arch/x86/boot/bzImage $resdir
|
|
|
|
|
|
+ if test -n "$BOOT_IMAGE"
|
|
|
|
+ then
|
|
|
|
+ cp $builddir/$BOOT_IMAGE $resdir
|
|
|
|
+ else
|
|
|
|
+ echo No identifiable boot image, not running KVM, see $resdir.
|
|
|
|
+ echo Do the torture scripts know about your architecture?
|
|
|
|
+ fi
|
|
parse-build.sh $resdir/Make.out $title
|
|
parse-build.sh $resdir/Make.out $title
|
|
if test -f $builddir.wait
|
|
if test -f $builddir.wait
|
|
then
|
|
then
|
|
@@ -124,9 +132,6 @@ cd $KVM
|
|
kstarttime=`awk 'BEGIN { print systime() }' < /dev/null`
|
|
kstarttime=`awk 'BEGIN { print systime() }' < /dev/null`
|
|
echo ' ---' `date`: Starting kernel
|
|
echo ' ---' `date`: Starting kernel
|
|
|
|
|
|
-# Determine the appropriate flavor of qemu command.
|
|
|
|
-QEMU="`identify_qemu $builddir/vmlinux`"
|
|
|
|
-
|
|
|
|
# Generate -smp qemu argument.
|
|
# Generate -smp qemu argument.
|
|
qemu_args="-nographic $qemu_args"
|
|
qemu_args="-nographic $qemu_args"
|
|
cpu_count=`configNR_CPUS.sh $config_template`
|
|
cpu_count=`configNR_CPUS.sh $config_template`
|
|
@@ -151,13 +156,13 @@ boot_args="`configfrag_boot_params "$boot_args" "$config_template"`"
|
|
# Generate kernel-version-specific boot parameters
|
|
# Generate kernel-version-specific boot parameters
|
|
boot_args="`per_version_boot_params "$boot_args" $builddir/.config $seconds`"
|
|
boot_args="`per_version_boot_params "$boot_args" $builddir/.config $seconds`"
|
|
|
|
|
|
-echo $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd
|
|
|
|
|
|
+echo $QEMU $qemu_args -m 512 -kernel $builddir/$BOOT_IMAGE -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd
|
|
if test -n "$TORTURE_BUILDONLY"
|
|
if test -n "$TORTURE_BUILDONLY"
|
|
then
|
|
then
|
|
echo Build-only run specified, boot/test omitted.
|
|
echo Build-only run specified, boot/test omitted.
|
|
exit 0
|
|
exit 0
|
|
fi
|
|
fi
|
|
-( $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append $boot_args"; echo $? > $resdir/qemu-retval ) &
|
|
|
|
|
|
+( $QEMU $qemu_args -m 512 -kernel $builddir/$BOOT_IMAGE -append "$qemu_append $boot_args"; echo $? > $resdir/qemu-retval ) &
|
|
qemu_pid=$!
|
|
qemu_pid=$!
|
|
commandcompleted=0
|
|
commandcompleted=0
|
|
echo Monitoring qemu job at pid $qemu_pid
|
|
echo Monitoring qemu job at pid $qemu_pid
|