# # \brief Test of Tox DHT bootstrap daemon # \author Emery Hemingway # 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/tox_dht_bootstrap drivers/nic lib/vfs/import } 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 import_from_depot \ [depot_user]/src/[base_src] \ [depot_user]/src/init \ [depot_user]/src/vfs_lwip \ [depot_user]/src/report_rom \ append config { } append_platform_drv_config append_if [have_spec gpio] config " " append config { } [nic_drv_config] { 2000-01-01 00:00 01234567890123456789 01234567890123456789 } install_config $config # generic modules set boot_modules { libc.lib.so libm.lib.so libsodium.lib.so c-toxcore.lib.so tox_dht_bootstrap vfs.lib.so } # 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 " -net user -net dump,file=[run_dir].pcap" append qemu_args " -nographic" run_genode_until forever