assert_spec x86 if {(![have_spec nova] && ![have_spec foc])} { puts "Platform is unsupported." exit 0 } if {[have_include "power_on/qemu"]} { puts "\nRun script does not support Qemu.\n" exit } if { [get_cmd_switch --autopilot] && [have_spec x86_32] } { puts "Run script does not support autopilot mode on 32 bit" exit 0 } if {[have_spec nova]} { proc kernel_output { } { return "novga logmem" } } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/src/fs_rom \ [depot_user]/src/init \ [depot_user]/src/libc \ [depot_user]/src/libiconv \ [depot_user]/src/nitpicker \ [depot_user]/src/part_block \ [depot_user]/src/stdcxx \ [depot_user]/src/vfs \ [depot_user]/src/vfs_pipe \ [depot_user]/src/vfs_import \ [depot_user]/src/jpeg if {$use_vms > 1} { import_from_depot [depot_user]/pkg/themed_wm } if {$use_usb} { import_from_depot [depot_user]/src/legacy_usb_host_drv \ [depot_user]/src/usb_hid_drv } if {$use_rumpfs} { import_from_depot [depot_user]/src/rump } append build_components { drivers/ahci drivers/framebuffer } lappend_if [expr $use_serial] build_components server/log_terminal lappend_if [expr $use_vbox5] build_components virtualbox5 lappend_if [expr $use_ps2] build_components drivers/ps2 lappend_if [expr $use_usb] build_components app/usb_report_filter lappend_if [have_spec x86] build_components drivers/rtc lappend_if [expr $use_ram_fs || $use_usb] build_components lib/vfs/import lappend_if [expr $use_cpu_load] build_components app/trace_subject_reporter lappend_if [expr $use_cpu_load] build_components app/cpu_load_display lappend_if [expr $use_cpu_load] build_components app/top lappend_if [have_spec nova] build_components app/log_core source ${genode_dir}/repos/base/run/platform_drv.inc # override defaults of platform_drv.inc proc platform_drv_priority {} { return { priority="-1"} } append_platform_drv_build_components build $build_components if {$use_rumpfs && !$use_ram_fs} { set rump_writeable true } else { set rump_writeable false } set config { } if {$use_vms > 1} { append config " " } append config { } append_if [expr $use_cpu_load] config { } append config { } append_if [expr $use_rumpfs] config { } append_if [expr !$use_rumpfs] config { } append config { } append_if [have_spec nova] config { } append_if [expr $use_rumpfs] config { } append_if [expr $use_rumpfs && $use_ram_fs && $use_overlay_from_disk] config { } append_if [expr $use_rumpfs] config { } append_if [expr $use_ram_fs] config { } append_if [expr $use_ram_fs] config " " append_if [expr $use_ram_fs] config { } for { set i 1} { $i <= ${use_vms} } { incr i} { append_if [expr $use_ram_fs] config " " } append_if [expr $use_ram_fs] config { } for { set i 1} { $i <= ${use_vms} } { incr i} { append_if [expr $use_ram_fs] config " from_ram_fs\" root=\"/ram${i}\" writeable=\"yes\"/>" } append_if [expr $use_ram_fs] config { } append_if [expr $use_ram_fs && $use_overlay_from_disk] config "" append_if [expr $use_ram_fs && $use_overlay_from_disk] config { } append_if [expr $use_ram_fs] config { } append_if [expr $use_ram_fs && $use_overlay_from_disk] config { } append_if [expr $use_rumpfs && $use_ram_fs && $use_overlay_from_disk] config { } append_if [expr $use_ram_fs && $use_overlay_from_disk] config { } append_platform_drv_config append_if [expr $use_ps2] config { } append_if [expr $use_cpu_load] config { } append_if [expr $use_usb] config { } append_if [have_board pc] config { } append_if [have_spec x86] config { } append_if [expr $use_serial] config { } append config $config_of_app append config { } install_config $config append boot_modules { ahci_drv qemu-usb.lib.so libyuv.lib.so } lappend_if [expr $use_serial] boot_modules log_terminal lappend_if [expr $use_vbox5] boot_modules $virtualbox5_binary lappend_if [expr $use_ram_fs && !$use_overlay_from_disk] boot_modules $overlay_image lappend_if [expr $use_cpu_load] boot_modules trace_subject_reporter lappend_if [expr $use_cpu_load] boot_modules cpu_load_display lappend_if [expr $use_cpu_load] boot_modules top lappend_if [have_spec nova] boot_modules log_core # platform-specific modules lappend_if [expr $use_ps2] boot_modules ps2_drv lappend_if [expr $use_usb] boot_modules usb_report_filter lappend_if [have_board pc] boot_modules vesa_fb_drv lappend_if [have_spec x86] boot_modules rtc_drv append_platform_drv_boot_modules