summaryrefslogtreecommitdiff
path: root/sim-scripts
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-13 13:56:41 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-13 14:03:28 +0100
commit00042b50e386799b7bcb1c828e06341e66e1a1fe (patch)
treecd40eff24a53172c6e1119193a4e79499c9c2efa /sim-scripts
parent9f23aff6ff4a41cbd20cb175e392795a92ea24e1 (diff)
realview_pbx_a9_qemu: Add network support
Diffstat (limited to 'sim-scripts')
-rw-r--r--sim-scripts/realview_pbx_a9_qemu.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/sim-scripts/realview_pbx_a9_qemu.in b/sim-scripts/realview_pbx_a9_qemu.in
index b92fd82..f86c0fe 100644
--- a/sim-scripts/realview_pbx_a9_qemu.in
+++ b/sim-scripts/realview_pbx_a9_qemu.in
@@ -2,6 +2,7 @@
# arm/realview_pbx_a9_qemu Qemu Support
#
+bspSupportsNIC="yes"
bspUsesGDBSimulator="no"
# bspGeneratesGDBCommands="yes"
# bspSupportsGDBServerMode="yes"
@@ -17,7 +18,16 @@ runARGS()
COVERAGE_ARG="-trace ${1}.cov"
fi
- echo "-no-reboot -net none -nographic -M realview-pbx-a9 -m 256M ${COVERAGE_ARG} -kernel ${1}"
+ if [ ${enable_network} = yes ] ; then
+ NETWORK_ARG="-net nic,model=smc91c111,macaddr=0e:b0:ba:5e:ba:11"
+ if [ x${tap_network_interface} != x ] ; then
+ NETWORK_ARG="${NETWORK_ARG} -net tap,ifname=${tap_network_interface},script=no,downscript=no"
+ fi
+ else
+ NETWORK_ARG="-net none"
+ fi
+
+ echo "-no-reboot -nographic -M realview-pbx-a9 -m 256M ${COVERAGE_ARG} ${NETWORK_ARG} -kernel ${1}"
}
checkBSPFaults()