From 0cf18081f94625dbccf0a471058ae0bfb48ec8fd Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Thu, 20 Apr 2017 20:42:10 +0200 Subject: [PATCH] virtualbox.run: extension to run multiple VMs set use_gui to get 2 VMs Issue #2338 --- repos/ports/run/virtualbox.run | 138 ++++++++++++++++++++++++++++++++- 1 file changed, 135 insertions(+), 3 deletions(-) diff --git a/repos/ports/run/virtualbox.run b/repos/ports/run/virtualbox.run index 388cecf8f..a468e3ce4 100644 --- a/repos/ports/run/virtualbox.run +++ b/repos/ports/run/virtualbox.run @@ -6,6 +6,8 @@ set use_serial 1 set use_vbox4 1 set use_vbox5 [expr !$use_vbox4] +set use_gui 0 + set build_components { core init drivers/framebuffer @@ -34,6 +36,11 @@ lappend_if [have_spec x86] build_components drivers/rtc lappend_if [expr $use_net] build_components drivers/nic +lappend_if [expr $use_gui] build_components server/report_rom +lappend_if [expr $use_gui] build_components server/nitpicker +lappend_if [expr $use_gui] build_components server/nit_fb +lappend_if [expr $use_gui] build_components app/vbox_pointer + append_platform_drv_build_components build $build_components @@ -121,7 +128,7 @@ append_if [expr $use_net] config { } append_if [expr $use_serial] config { - + @@ -129,8 +136,113 @@ append_if [expr $use_serial] config { } +append_if [expr $use_gui] config { + + + + + + + + + + + + + + + + + } + +append_if [expr ($use_gui && $use_ps2)] config { + } +append_if [expr ($use_gui && $use_usb)] config { + } + +append_if [expr $use_gui] config { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + } +append_if [expr $use_gui] config " + " +append_if [expr $use_gui] config { + + + + + + + + + + + + + + + + } + append config { - } + } append config " " append config { @@ -148,6 +260,16 @@ append config { + } + +append_if [expr $use_gui] config { + + + } + +append config { + + } @@ -167,6 +289,11 @@ lappend_if [have_spec framebuffer] boot_modules fb_drv lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec x86] boot_modules rtc_drv +lappend_if [expr $use_gui] boot_modules report_rom +lappend_if [expr $use_gui] boot_modules nitpicker +lappend_if [expr $use_gui] boot_modules nit_fb +lappend_if [expr $use_gui] boot_modules vbox_pointer + append boot_modules { ld.lib.so libc.lib.so libm.lib.so pthread.lib.so libc_pipe.lib.so libc_terminal.lib.so libiconv.lib.so stdcxx.lib.so @@ -181,7 +308,12 @@ append_platform_drv_boot_modules build_boot_image $boot_modules if {[have_include "power_on/qemu"]} { - append qemu_args " -m 512 " + if {[expr $use_gui]} { + append qemu_args " -m 2048 " + } else { + append qemu_args " -m 768 " + } + append qemu_args " -cpu phenom " if {[expr $use_usb]} { append qemu_args " -usbdevice mouse -usbdevice keyboard"