# # Build # set use_usb_driver [expr [have_spec omap4] || [have_spec arndale] || [have_spec rpi]] set use_nic_driver [expr !$use_usb_driver && ![have_spec odroid_xu] && ![have_spec linux]] if {[expr !$use_usb_driver && !$use_nic_driver] || [expr [have_spec imx53] && [have_spec trustzone]]} { puts "\n Run script is not supported on this platform. \n"; exit 0 } set build_components { core init drivers/timer drivers/nic lib/vfs/lwip app/eth } lappend_if $use_usb_driver build_components drivers/usb lappend_if [have_spec gpio] build_components drivers/gpio 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 } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory # # Generate config # set config { } append_if [have_spec gpio] config " " append_if $use_usb_driver config { } append_platform_drv_config append_if $use_nic_driver config { } [nic_drv_config] { } append config { } install_config $config # # Boot image # build_boot_image { core ld.lib.so init eth nic_drv vfs_lwip.lib.so timer libc.lib.so vfs.lib.so } append qemu_args " -nographic " append_if [have_spec lan9118] qemu_args " -net nic,macaddr=02:00:00:00:01:03 -net nic,model=lan9118 -net tap,ifname=tap0,script=no " run_genode_until forever