Skip to contentSkip to conversation

arm-autonomy/qemu: Install qemu-system-i386 instead of qemu-xen

PATCH Applied Diego Sueiro 3 participants 3 messages Jul 16, 2020 – Jul 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-autonomy/qemu: Install qemu-system-i386 instead of qemu-xen

This patch cleans the qemu_%.bbappend and uses the already provided qemu-system-i386 package from meta-virtualization to include only the /usr/bin/qemu-system-i386 binary.

Change-Id: I6f1fc4db458d0b09c54013c1512398521cb349e2
Issue-Id: SCM-889

---
 .../recipes-core/images/arm-autonomy-host-image-minimal.bb   |  2 +-
 meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend      | 12 +++---------
 2 files changed, 4 insertions(+), 10 deletions(-)
meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb +1 -1
index 5b20fa0..9731c7c 100644
@@ -39,7 +39,7 @@ ARM_AUTONOMY_HOST_IMAGE_EXTERN_GUESTS ??= ""
 IMAGE_INSTALL += " \
     packagegroup-core-boot \
     packagegroup-core-ssh-openssh \
-    qemu-xen \
+    qemu-system-i386 \
     xenguest-manager \
     xenguest-network-bridge \
     "
meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend +3 -9
index ed63a4e..dbd89aa 100644
@@ -6,13 +6,7 @@ OVERRIDES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ':xen', '', d
 QEMU_TARGETS_xen = "i386"
 
 PACKAGECONFIG[noaudio] = "--audio-drv-list='',,"
-PACKAGECONFIG_append_xen = " virtfs noaudio"
-PACKAGECONFIG_remove_xen = "sdl"
+PACKAGECONFIG_append_xen = " noaudio"
+PACKAGECONFIG_remove_xen = "fdt sdl kvm"
 
-# Reduce the qemu package size by splitting it into
-# qemu and qemu-xen packages
-PACKAGES_prepend_xen := "${PN}-xen"
-RDEPENDS_${PN}_xen += "${PN}-xen"
-FILES_${PN}-xen_xen = "${bindir}/qemu-system-i386"
-RDEPENDS_${PN}-xen_xen += "xen-tools-libxenstore xen-tools-libxenctrl \
-    xen-tools-libxenguest"
+require ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'recipes-devtools/qemu/${BPN}-package-split.inc', '', d)}
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Diego Sueiro via lists.yoctoproject.org

This patch cleans the qemu_%.bbappend and uses the already provided qemu-system-i386 package from meta-virtualization to include only the /usr/bin/qemu-system-i386 binary.

Change-Id: I6f1fc4db458d0b09c54013c1512398521cb349e2
Issue-Id: SCM-889

Quoted 43 lines

---
.../recipes-core/images/arm-autonomy-host-image-minimal.bb | 2 +-
meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend | 12 +++---------

2 files changed, 4 insertions(+), 10 deletions(-)
meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb +1 -1
index 5b20fa0..9731c7c 100644
@@ -39,7 +39,7 @@ ARM_AUTONOMY_HOST_IMAGE_EXTERN_GUESTS ??= ""
 IMAGE_INSTALL += " \
    packagegroup-core-boot \
    packagegroup-core-ssh-openssh \
-    qemu-xen \
+    qemu-system-i386 \
    xenguest-manager \
    xenguest-network-bridge \
    "
meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend +0 -0
index ed63a4e..dbd89aa 100644
@@ -6,13 +6,7 @@ OVERRIDES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ':xen', '', d

QEMU_TARGETS_xen = "i386"

PACKAGECONFIG[noaudio] = "--audio-drv-list='',,"

meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend +3 -9
-PACKAGECONFIG_append_xen = " virtfs noaudio"
-PACKAGECONFIG_remove_xen = "sdl"
+PACKAGECONFIG_append_xen = " noaudio"
+PACKAGECONFIG_remove_xen = "fdt sdl kvm"
 
-# Reduce the qemu package size by splitting it into
-# qemu and qemu-xen packages
-PACKAGES_prepend_xen := "${PN}-xen"
-RDEPENDS_${PN}_xen += "${PN}-xen"
-FILES_${PN}-xen_xen = "${bindir}/qemu-system-i386"
-RDEPENDS_${PN}-xen_xen += "xen-tools-libxenstore xen-tools-libxenctrl \
-    xen-tools-libxenguest"
+require ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'recipes-devtools/qemu/${BPN}-package-split.inc', '', d)}
Signature · 1 line
2.7.4
Applied
#2 lore raw
Quoted 4 lines · Bertrand Marquis
Quoted 4 lines · Diego Sueiro via lists.yoctoproject.org
Quoted 8 lines
Quoted 7 lines

This patch cleans the qemu_%.bbappend and uses the already provided qemu-system-i386 package from meta-virtualization to include only the /usr/bin/qemu-system-i386 binary.

Change-Id: I6f1fc4db458d0b09c54013c1512398521cb349e2
Issue-Id: SCM-889

Applied to master.

Thanks,
Jon

Quoted 47 lines
Quoted 44 lines

---
.../recipes-core/images/arm-autonomy-host-image-minimal.bb | 2 +-
meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend | 12 +++---------

2 files changed, 4 insertions(+), 10 deletions(-)
meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb +1 -1
index 5b20fa0..9731c7c 100644
@@ -39,7 +39,7 @@ ARM_AUTONOMY_HOST_IMAGE_EXTERN_GUESTS ??= ""
 IMAGE_INSTALL += " \
    packagegroup-core-boot \
    packagegroup-core-ssh-openssh \
-    qemu-xen \
+    qemu-system-i386 \
    xenguest-manager \
    xenguest-network-bridge \
    "
meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend +0 -0
index ed63a4e..dbd89aa 100644
@@ -6,13 +6,7 @@ OVERRIDES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ':xen', '', d

QEMU_TARGETS_xen = "i386"

PACKAGECONFIG[noaudio] = "--audio-drv-list='',,"

meta-arm-autonomy/recipes-devtools/qemu/qemu_%.bbappend +3 -9
-PACKAGECONFIG_append_xen = " virtfs noaudio"
-PACKAGECONFIG_remove_xen = "sdl"
+PACKAGECONFIG_append_xen = " noaudio"
+PACKAGECONFIG_remove_xen = "fdt sdl kvm"
 
-# Reduce the qemu package size by splitting it into
-# qemu and qemu-xen packages
-PACKAGES_prepend_xen := "${PN}-xen"
-RDEPENDS_${PN}_xen += "${PN}-xen"
-FILES_${PN}-xen_xen = "${bindir}/qemu-system-i386"
-RDEPENDS_${PN}-xen_xen += "xen-tools-libxenstore xen-tools-libxenctrl \
-    xen-tools-libxenguest"
+require ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'recipes-devtools/qemu/${BPN}-package-split.inc', '', d)}
Signature · 1 line
2.7.4