From: Chunrong Guo <[email protected]>

Signed-off-by: Chunrong Guo <[email protected]>
---
 recipes-daemons/ptpd/ptpd-qoriq.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/recipes-daemons/ptpd/ptpd-qoriq.bb 
b/recipes-daemons/ptpd/ptpd-qoriq.bb
index df3787b..f3a7f0c 100644
--- a/recipes-daemons/ptpd/ptpd-qoriq.bb
+++ b/recipes-daemons/ptpd/ptpd-qoriq.bb
@@ -14,6 +14,15 @@ PROVIDES = "ptpd"
 
 inherit autotools pkgconfig systemd
 
+python() {
+    pkgs = d.getVar('PACKAGES', True).split()
+    for p in pkgs:
+        if 'ptpd-qoriq' in p:
+            d.appendVar("RPROVIDES_%s" % p, p.replace('ptpd-qoriq', 'ptpd'))
+            d.appendVar("RCONFLICTS_%s" % p, p.replace('ptpd-qoriq', 'ptpd'))
+            d.appendVar("RREPLACES_%s" % p, p.replace('ptpd-qoriq', 'ptpd'))
+}
+
 # return something like '1.2.3' or '1.2.3/rc1'
 #
 def get_sub(d):
-- 
2.7.4

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to