if {[get_cmd_switch --autopilot] && [have_board virt_qemu_riscv]} {
puts "Autopilot mode is not supported on this platform."
exit 0
}
set targets "core init timer server/nic_router server/nic_bridge
test/lwip/http_srv test/lwip/http_clnt test/lwip/udp
server/nic_loopback lib/vfs_lwip "
proc client_bin { prot } {
if {$prot == "udp"} { return "test-lwip-udp-client" }
if {$prot == "http"} { return "test-http_clnt" } }
proc server_bin { prot } {
if {$prot == "udp"} { return "test-lwip-udp-server" }
if {$prot == "http"} { return "test-lwip_httpsrv" } }
proc client_config { name prot ip_addr gateway netmask nic srv_port srv_ip } {
global nr_of_clients
incr nr_of_clients
append result {
}
if {$ip_addr == "dhcp"} {
append result {
}
} else {
append result {
}
}
append result {
}
return $result
}
proc server_config { name prot ip_addr gateway netmask nic port } {
append result {
}
return $result
}
set boot_modules "
core init timer nic_router nic_bridge nic_loopback ld.lib.so
libc.lib.so vfs.lib.so vfs_lwip.lib.so [client_bin udp] [server_bin udp]
[client_bin http] [server_bin http] "
append qemu_args "-nographic "