Skip to contentSkip to conversation

qemu: Install the default qemu emulation rpm

PATCH Yu, Mingli 2 participants 3 messages Jun 26, 2023 – Jun 29, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Yu, Mingli

author
#1 lore raw

Ping.

Thanks,

Quoted 39 lines · Mingli

From: Mingli Yu <[email protected]>

The qemu rpm can be split or not via customize PACKAGESPLITFUNCS and there is no specific qemu emulation rpm installed when we choose split the qemu rpms now.

To gurantee the basic usage, install the qemu emulation rpm which corresponding to the target arch by default when split the qemu rpm.

---
  meta/recipes-devtools/qemu/qemu.inc | 3 +++
  1 file changed, 3 insertions(+)
meta/recipes-devtools/qemu/qemu.inc +3 -1
index 7d39f0a25d..c9df43a5a2 100644
@@ -248,6 +248,9 @@ python split_qemu_packages () {
      mipspackage = d.getVar('PN') + "-user-mips"
      if mipspackage in ' '.join(userpackages):
          d.appendVar('RDEPENDS:' + mipspackage, ' ' + d.getVar("MLPREFIX") + 'bash')
+
+    targetarch = "${@'i386' if d.getVar('TARGET_ARCH') in ['x86', 'i486', 'i586', 'i686'] else d.getVar('TARGET_ARCH').replace('_', '-')}"
+    d.appendVar('RRECOMMENDS:' + d.getVar('PN'), ' ' + d.getVar('PN') + '-user-' + targetarch + ' ' + d.getVar('PN') + '-system-' + targetarch)
  }
 
  # Put the guest agent in a separate package
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#182837): https://lists.openembedded.org/g/openembedded-core/message/182837
Mute This Topic: https://lists.openembedded.org/mt/99544571/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
In reply to a message not in the archive

Please ignore this patch and use the patch "qemu: Add qemu-common package" instead.

And the patch "qemu: Add qemu-common package" fix the backward compatibility as https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/.

Thanks,

Quoted 39 lines · Mingli

From: Mingli Yu <[email protected]>

The qemu rpm can be split or not via customize PACKAGESPLITFUNCS and there is no specific qemu emulation rpm installed when we choose split the qemu rpms now.

To gurantee the basic usage, install the qemu emulation rpm which corresponding to the target arch by default when split the qemu rpm.

---
  meta/recipes-devtools/qemu/qemu.inc | 3 +++
  1 file changed, 3 insertions(+)
meta/recipes-devtools/qemu/qemu.inc +3 -1
index 7d39f0a25d..c9df43a5a2 100644
@@ -248,6 +248,9 @@ python split_qemu_packages () {
      mipspackage = d.getVar('PN') + "-user-mips"
      if mipspackage in ' '.join(userpackages):
          d.appendVar('RDEPENDS:' + mipspackage, ' ' + d.getVar("MLPREFIX") + 'bash')
+
+    targetarch = "${@'i386' if d.getVar('TARGET_ARCH') in ['x86', 'i486', 'i586', 'i686'] else d.getVar('TARGET_ARCH').replace('_', '-')}"
+    d.appendVar('RRECOMMENDS:' + d.getVar('PN'), ' ' + d.getVar('PN') + '-user-' + targetarch + ' ' + d.getVar('PN') + '-system-' + targetarch)
  }
 
  # Put the guest agent in a separate package
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#182837): https://lists.openembedded.org/g/openembedded-core/message/182837
Mute This Topic: https://lists.openembedded.org/mt/99544571/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-