# # \brief Test of fetchurl # \author Emery Hemingway # \date 2016-06-05 # if {[have_spec odroid_xu] || [have_spec linux] || [expr [have_spec imx53] && [have_spec trustzone]]} { puts "Run script does not support this platform." exit 0 } set build_components { app/fetchurl core init timer drivers/nic 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 append_socket_fs_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] { 2000-01-01 00:00 01234567890123456789 <} [socket_fs_plugin] { dhcp="yes"/> } install_config $config # generic modules set boot_modules { core init ld.lib.so curl.lib.so fetchurl libc.lib.so vfs.lib.so libcrypto.lib.so libssh.lib.so libssl.lib.so timer zlib.lib.so report_rom } # platform-specific modules append_platform_drv_boot_modules # vfs plugin modules append_socket_fs_boot_modules lappend boot_modules [nic_drv_binary] lappend_if [have_spec gpio] boot_modules [gpio_drv] build_boot_image $boot_modules append qemu_args " -nographic " proc qemu_nic_model {} { if [have_spec x86] { return e1000 } if [have_spec lan9118] { return lan9118 } if [have_spec cadence_gem] { return cadence_gem } return nic_model_missing } append qemu_args " -netdev user,id=net0 " append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 " run_genode_until {child "fetchurl" exited with exit value 0} 120