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 "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/platform \ [depot_user]/src/acpi \ [depot_user]/src/pci_decode \ [depot_user]/src/report_rom \ [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/pc_usb_host \ [depot_user]/src/usb_hid } if {!$use_usb} { import_from_depot [depot_user]/src/black_hole } if {$use_rumpfs} { import_from_depot [depot_user]/src/rump } append build_components { driver/ahci driver/framebuffer driver/rtc driver/ps2 lib/qemu-usb lib/libyuv virtualbox5 } lappend_if [expr $use_serial] build_components server/log_terminal 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 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_if [expr $use_cpu_load] config { } append_if [expr $use_usb] config { } append_if [expr !$use_usb] config { } append_if [expr $use_serial] config { } append config $config_of_app append config { } install_config $config lappend boot_modules {*}[build_artifacts] lappend_if [expr $use_ram_fs && !$use_overlay_from_disk] boot_modules $overlay_image