From 00042b50e386799b7bcb1c828e06341e66e1a1fe Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Nov 2013 13:56:41 +0100 Subject: realview_pbx_a9_qemu: Add network support --- sim-scripts/realview_pbx_a9_qemu.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sim-scripts') 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() -- cgit v1.2.3