# # Build # if {[have_spec odroid_xu]} { puts "Run script not supported on this platform."; exit 0 } set build_components { core init drivers/timer server/nitpicker server/dynamic_rom server/report_rom drivers/framebuffer drivers/input app/trace_subject_reporter app/cpu_load_display app/cpu_burner app/pointer } 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 lappend_if [need_usb_hid] build_components drivers/usb lappend_if [have_spec gpio] build_components drivers/gpio append_platform_drv_build_components build $build_components create_boot_directory # # Generate config # append config { } append_if [have_spec sdl] config { } append_platform_drv_config append_if [have_spec framebuffer] config { } append_if [have_spec gpio] config " " append_if [have_spec imx53] config { } append_if [have_spec ps2] config { } append_if [need_usb_hid] config { } append config { } install_config $config # copy backdrop PNG images to bin directory foreach file { genode_logo.png grid.png } { file copy -force [genode_dir]/repos/gems/src/app/backdrop/$file bin/ } # # Boot modules # # generic modules set boot_modules { core ld.lib.so init timer nitpicker report_rom dynamic_rom pointer cpu_load_display cpu_burner trace_subject_reporter } # platform-specific modules append_platform_drv_boot_modules lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec ps2] boot_modules ps2_drv lappend_if [have_spec framebuffer] boot_modules fb_drv lappend_if [need_usb_hid] boot_modules usb_drv lappend_if [have_spec gpio] boot_modules [gpio_drv] lappend_if [have_spec imx53] boot_modules input_drv build_boot_image $boot_modules append qemu_args " -m 256 " append qemu_args " -smp 4,cores=4 " run_genode_until forever