aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-daemons
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2018-05-28 13:54:49 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2018-06-06 10:56:47 -0300
commit124f0226fd1639b7a7d25c00b05131c9096c503e (patch)
tree34fb0d3820008c3a0589d6e77733eed97c2f4608 /recipes-daemons
parent88e4a5e6fbf6a8b69ce3ecf610b87cefa0d962be (diff)
downloadmeta-freescale-124f0226fd1639b7a7d25c00b05131c9096c503e.tar.gz
meta-freescale-124f0226fd1639b7a7d25c00b05131c9096c503e.tar.bz2
meta-freescale-124f0226fd1639b7a7d25c00b05131c9096c503e.zip
ptpd-qoriq: Add RREPLACE/RPROVIDES/RCONFLICTS for ptpd-qoriq instead of ptpd
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-daemons')
-rw-r--r--recipes-daemons/ptpd/ptpd-qoriq.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-daemons/ptpd/ptpd-qoriq.bb b/recipes-daemons/ptpd/ptpd-qoriq.bb
index df3787b2..f3a7f0ce 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):