summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-02-17 07:41:07 -0800
committerMark Hatle <mark.hatle@amd.com>2023-02-20 10:19:14 -0600
commite237b4b103a2913430a46b47da54314f8f76e53c (patch)
tree7c9e52cf2adf0f0f50d63714ce8e7e8bf322485a
parent3915d667b03b282d474cc7b90c80374c8c602ff2 (diff)
downloadmeta-xilinx-e237b4b103a2913430a46b47da54314f8f76e53c.tar.gz
qemu: For alternative provider, add rdepends
We want to be able to install qemu-xilinx-dev package, if the user requests qemu-dev. We can't just hard code a list, as the virtualization layer can modify the packages produced based on the existence of Xen or not. So dynamically compute the variable append. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-devtools/qemu/qemu-alt.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-alt.inc b/meta-xilinx-core/recipes-devtools/qemu/qemu-alt.inc
index 4b99b55a..7e88713c 100644
--- a/meta-xilinx-core/recipes-devtools/qemu/qemu-alt.inc
+++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-alt.inc
@@ -13,7 +13,8 @@ python () {
13 (d.getVar("PREFERRED_PROVIDER_qemu") and d.getVar("PREFERRED_PROVIDER_qemu") != d.getVar("PN")): 13 (d.getVar("PREFERRED_PROVIDER_qemu") and d.getVar("PREFERRED_PROVIDER_qemu") != d.getVar("PN")):
14 d.delVar("BB_DONT_CACHE") 14 d.delVar("BB_DONT_CACHE")
15 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_qemu to %s to enable it" % (d.getVar("PN"))) 15 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_qemu to %s to enable it" % (d.getVar("PN")))
16}
17 16
18RPROVIDES:${PN} += "qemu" 17 if (d.getVar('BPN') != 'qemu'):
19RPROVIDES:${PN}-ptest += "qemu-ptest" 18 for pkg in d.getVar('PACKAGES').split():
19 d.appendVar('RPROVIDES:%s' % pkg, ' ' + pkg.replace(d.getVar('PN'), 'qemu'))
20}