From 2fa5dae62868c63781568eeb5435ed3296c2ddc2 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Sun, 10 Nov 2019 00:39:42 +0000 Subject: Extend intel-corei7-64 machine to support virtual targets These changes allow images built for the intel-corei7-64 machine to be booted under qemu (by using the normal `runqemu` command) and vmware or virtualbox after a build. Functionality on real hardware should not be compromised. Bug-AGL: SPEC-2931 Change-Id: If25782bf59e145cab32a4c9a0e39b599106ce7cc Signed-off-by: Paul Barker --- meta-agl-bsp/conf/include/agl_intel-corei7-64.inc | 16 +++++++++++++++- .../recipes-graphics/mesa/mesa_%.bbappend | 1 + .../recipes-graphics/wayland/weston-ini-conf.bbappend | 3 +++ .../vboxguestdrivers/vboxguestdrivers_%.bbappend | 1 + 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 meta-agl-bsp/recipes-support/vboxguestdrivers/vboxguestdrivers_%.bbappend (limited to 'meta-agl-bsp') diff --git a/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc b/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc index 39ed66880..68398371b 100644 --- a/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc +++ b/meta-agl-bsp/conf/include/agl_intel-corei7-64.inc @@ -5,7 +5,7 @@ IMAGE_INSTALL_append = " \ intel-vaapi-driver \ gstreamer1.0-vaapi" -AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum" +AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum ext4 wic.vmdk" INITRD_LIVE = "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}-${MACHINE}.ext4.gz" # Modify this file under meta-agl-bsp/meta-intel/wic to change the @@ -16,3 +16,17 @@ PREFERRED_VERSION_linux-intel ?= "4.19%" PREFERRED_VERSION_linux-intel-rt ?= "4.19%" SERIAL_CONSOLES_remove = "115200;ttyS2" + +# +# To avoid corrupt boot screen by systemd message, you can use serial +# console separated from VGA console or disable all boot messages by +# kernel command line. +# +# Configuration for serial console +QB_KERNEL_CMDLINE_APPEND_append = " console=ttyS0,115200n8" +# +# All boot message will be off +QB_KERNEL_CMDLINE_APPEND_append = " quiet" +# +# Force the virtio video device as 'vmware' doesn't always work +QB_OPT_APPEND_append = " -vga virtio" diff --git a/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/mesa/mesa_%.bbappend b/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/mesa/mesa_%.bbappend index 49e527707..8ac343aa3 100644 --- a/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/mesa/mesa_%.bbappend +++ b/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/mesa/mesa_%.bbappend @@ -2,5 +2,6 @@ GALLIUM_LLVM = "gallium-llvm" PACKAGECONFIG_append_qemux86 = " gallium ${GALLIUM_LLVM}" PACKAGECONFIG_append_qemux86-64 = " gallium ${GALLIUM_LLVM}" +PACKAGECONFIG_append_intel-corei7-64 = " gallium ${GALLIUM_LLVM}" DRIDRIVERS_append_intel-corei7-64 = ",i965" diff --git a/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/wayland/weston-ini-conf.bbappend b/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/wayland/weston-ini-conf.bbappend index 8fa08bc3b..916bd6f3d 100644 --- a/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/wayland/weston-ini-conf.bbappend +++ b/meta-agl-bsp/meta-aglprofilegraphical/recipes-graphics/wayland/weston-ini-conf.bbappend @@ -7,3 +7,6 @@ OVERRIDES_prepend_qemux86-64 = "virtualmachine:" # Switch to the Virtual section that we have when a valid DRM device is found SRC_URI_remove_virtualmachine = "file://hdmi-a-1-270.cfg" SRC_URI_append_virtualmachine = " file://virtual.cfg" + +# For intel-corei7-64 we want to support both the HDMI-A-1 and Virtual-1 outputs +SRC_URI_append_intel-corei7-64 = " file://virtual.cfg" diff --git a/meta-agl-bsp/recipes-support/vboxguestdrivers/vboxguestdrivers_%.bbappend b/meta-agl-bsp/recipes-support/vboxguestdrivers/vboxguestdrivers_%.bbappend new file mode 100644 index 000000000..c87b36c17 --- /dev/null +++ b/meta-agl-bsp/recipes-support/vboxguestdrivers/vboxguestdrivers_%.bbappend @@ -0,0 +1 @@ +COMPATIBLE_MACHINE = "(qemux86|qemux86-64|intel-corei7-64)" -- cgit 1.2.3-korg