# # \brief Test of ssh_client # \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/ssh_client drivers/nic lib/vfs/import lib/vfs/lwip } 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 \ genodelabs/src/[base_src] \ genodelabs/pkg/[drivers_interactive_pkg] \ genodelabs/src/init \ genodelabs/pkg/terminal \ genodelabs/src/input_filter \ append config { } append_platform_drv_config append_if [have_spec gpio] config " " append config { } [nic_drv_config] { 2000-01-01 00:00 01234567890123456789 } install_config $config # generic modules set boot_modules { libc.lib.so libcrypto.lib.so libm.lib.so libssh.lib.so ssh_client vfs_import.lib.so vfs.lib.so vfs_lwip.lib.so zlib.lib.so } # platform-specific modules append_platform_drv_boot_modules lappend boot_modules [nic_drv_binary] lappend_if [have_spec ps2] boot_modules ps2_drv lappend_if [have_spec framebuffer] boot_modules fb_drv 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" run_genode_until forever