blob: 332143d8d217c0308f7cb81b5d01d44f94abc896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#
# i386/qemu Support
#
# $Id$
#
bspUsesGDBSimulator="no"
runBSP=qemu
bspNeedsDos2Unix="yes"
# Set the defaults based upon arguments given and do some error checking
if [ X${QEMUDIR} == X ] ; then
QEMUDIR=${HOME}/qemu
fi
if [ ! -d ${QEMUDIR} ] ; then
fatal Base directory ${QEMUDIR} does not exist or is not a directory
fi
if [ X${hd0Dir} == X ] ; then
hd0Dir=${QEMUDIR}/hd
fi
if [ ! -d ${hd0Dir} ] ; then
fatal VFAT directory ${hd0Dir} does not exist or is not a directory
fi
if [ X${fd0Image} == X ] ; then
fd0Image=${QEMUDIR}/pc386_fda
fi
if [ ! -e ${fd0Image} ] ; then
fatal Boot floppy ${fd0Image} does not exist or is not a file
fi
if [ ${verbose} == "yes" ] ; then
echo "QEMU Working Directory: " ${qemudir}
echo "QEMU VFAT HD Directory: " ${hd0Dir}
echo "QEMU Boot Floppy File : " ${fd0Image}
fi
runARGS()
{
file ${1} | grep "Netboot image" >/dev/null 2>&1
if [ $? -eq 0 ] ; then
echo "INCORRECT FORMAT -- ${1}"
echo "MUST BE ELF -- look at using the .exe"
exit 1
fi
cp ${1} ${hd0Dir}/test.exe
echo "-m 8 -boot a -fda ${fd0Image} -hda fat:${hd0Dir} \
-monitor null -nographic -serial stdio --no-reboot"
}
checkBSPFaults()
{
for pattern in \
"FAULTY THREAD WILL BE DELETED" \
"Error code pushed by processor itself"
do
grep "${pattern}" ${logfile}
if [ $? -eq 0 ] ; then
return 1
fi
done
return 0
}
bspLimit()
{
testname=$1
case ${tname} in
*stackchk*)limit=5 ;;
*fatal*) limit=1 ;;
*psxtime*) limit=180 ;;
*) limit=60 ;;
esac
return ${limit}
}
bspGeneratesDeviceTree="no"
|