]> code.ossystems Code Review - meta-freescale.git/commitdiff
qemu-qoriq: Fix runtime providers
authorTing Liu <ting.liu@nxp.com>
Thu, 30 Jun 2016 07:09:50 +0000 (15:09 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 12 Aug 2016 14:41:02 +0000 (11:41 -0300)
Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-devtools/qemu/qemu-qoriq_git.bb

index d2e66c9eff25bd6402edd6b44a5db131bc7bc83f..99c1293dc37b3b28095dee981f9f1ecb90b3b869 100644 (file)
@@ -2,7 +2,16 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 require recipes-devtools/qemu/qemu.inc
 
-PROVIDES += "qemu"
+PROVIDES = "qemu"
+
+python() {
+    pkgs = d.getVar('PACKAGES', True).split()
+    for p in pkgs:
+        if 'qemu-qoriq' in p:
+            d.appendVar("RPROVIDES_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+            d.appendVar("RCONFLICTS_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+            d.appendVar("RREPLACES_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+}
 
 DESCRIPTION = "This recipe requires poky's qemu.inc which includes the FSL \
 fixes of QorIQ ARM and QorIQ PPC targets, the recipe assumes that glx enable \