[meta-freescale] [PATCH 1/5] ptpd-qoriq: Add RREPLACE/RPROVIDES/RCONFLICTS for ptpd-qoriq instead of ptpd
chunrong.guo at nxp.com
chunrong.guo at nxp.com
Sun May 27 20:45:31 PDT 2018
From: Chunrong Guo <chunrong.guo at nxp.com>
Signed-off-by: Chunrong Guo <chunrong.guo at nxp.com>
---
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
More information about the meta-freescale
mailing list