# # Build # set tcp_up_to_down_1 1 set tcp_up_to_down_2 1 set tcp_down_to_up_1 1 set udp_down_to_down_1 1 set udp_up_to_down_1 1 set udp_down_to_up_1 1 set use_usb_driver [expr [have_spec omap4] || [have_spec arndale] || [have_spec rpi]] set use_nic_driver [expr !$use_usb_driver && ![have_spec imx53] && ![have_spec hw_riscv] && ![have_spec hw_odroid_xu] && ![have_spec linux] && ![have_spec hw_wand_quad]] set nic_driver "nic_drv" if ($use_usb_driver) { set nic_driver "usb_drv" } if {[expr !$use_usb_driver && !$use_nic_driver]} { puts "\n Run script is not supported on this platform. \n"; exit 0 } set build_components { core init drivers/timer drivers/nic server/nic_router server/nic_bridge test/lwip/http_srv_static test/lwip/http_clnt test/lxip/udp_echo test/lxip/udp_client } lappend_if $use_usb_driver build_components drivers/usb lappend_if [have_spec gpio] build_components drivers/gpio source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory # # Generate config # append config { } append_if [have_spec gpio] config { } append_if $use_usb_driver config { } append_platform_drv_config append_if $use_nic_driver config { } append config { } append config " " append config { } append_if $udp_down_to_down_1 config { } append_if $udp_up_to_down_1 config { } append_if $udp_down_to_up_1 config { } append_if $tcp_up_to_down_1 config { } append_if $tcp_up_to_down_2 config { } append_if $tcp_down_to_up_1 config { } append config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer nic_router nic_bridge ld.lib.so libc.lib.so libm.lib.so libc_resolv.lib.so lwip.lib.so lxip.lib.so test-http_clnt test-lwip_httpsrv_static test-lxip_udp_echo test-lxip_udp_client } # platform-specific modules lappend_if $use_usb_driver boot_modules usb_drv lappend_if $use_nic_driver boot_modules nic_drv lappend_if [have_spec gpio] boot_modules gpio_drv append_platform_drv_boot_modules build_boot_image $boot_modules # qemu config append qemu_args " -m 256 -nographic " append_if [have_spec x86] qemu_args " -net nic,model=e1000 " append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 " append qemu_args " -net user -redir udp:5555::1337 " run_genode_until ".*Test done.*\n.*Test done.*\n.*Test done.*\n.*Test done.*\n.*Test done.*\n.*Test done.*\n" 60