# # \brief Test of 'fetchurl # \author Emery Hemingway # \date 2016-06-05 # if {[have_spec odroid_xu] || [have_spec linux]} { puts "Run script does not support this platform." exit 0 } set build_components { app/fetchurl core init drivers/nic drivers/timer lib/vfs/lxip server/report_rom } proc gpio_drv { } { if {[have_spec rpi] && [have_spec hw]} { return hw_gpio_drv } if {[have_spec rpi] && [have_spec foc]} { return foc_gpio_drv } return gpio_drv } lappend_if [have_spec gpio] build_components drivers/gpio source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components lappend_if [expr {[nic_drv_binary] == "nic_drv"}] build_components drivers/nic lappend_if [expr {[nic_drv_binary] == "usb_drv"}] build_components drivers/usb build $build_components create_boot_directory append config { } append_platform_drv_config append_if [have_spec gpio] config " " append config { } [nic_drv_config] { nameserver 1.1.1.1 2000-01-01 00:00 01234567890123456789 } install_config $config # generic modules set boot_modules { core init ld.lib.so curl.lib.so fetchurl libc.lib.so libcrypto.lib.so libssh.lib.so libssl.lib.so lxip.lib.so pthread.lib.so timer vfs_lxip.lib.so zlib.lib.so report_rom } # platform-specific modules append_platform_drv_boot_modules lappend boot_modules [nic_drv_binary] lappend_if [have_spec gpio] boot_modules [gpio_drv] build_boot_image $boot_modules 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 " -nographic -net user" run_genode_until {child "fetchurl" exited with exit value 0} 120