diff options
| -rw-r--r-- | recipes-daemons/ptpd/ptpd-qoriq.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-daemons/ptpd/ptpd-qoriq.bb b/recipes-daemons/ptpd/ptpd-qoriq.bb index df3787b21..f3a7f0ce5 100644 --- a/recipes-daemons/ptpd/ptpd-qoriq.bb +++ b/recipes-daemons/ptpd/ptpd-qoriq.bb | |||
| @@ -14,6 +14,15 @@ PROVIDES = "ptpd" | |||
| 14 | 14 | ||
| 15 | inherit autotools pkgconfig systemd | 15 | inherit autotools pkgconfig systemd |
| 16 | 16 | ||
| 17 | python() { | ||
| 18 | pkgs = d.getVar('PACKAGES', True).split() | ||
| 19 | for p in pkgs: | ||
| 20 | if 'ptpd-qoriq' in p: | ||
| 21 | d.appendVar("RPROVIDES_%s" % p, p.replace('ptpd-qoriq', 'ptpd')) | ||
| 22 | d.appendVar("RCONFLICTS_%s" % p, p.replace('ptpd-qoriq', 'ptpd')) | ||
| 23 | d.appendVar("RREPLACES_%s" % p, p.replace('ptpd-qoriq', 'ptpd')) | ||
| 24 | } | ||
| 25 | |||
| 17 | # return something like '1.2.3' or '1.2.3/rc1' | 26 | # return something like '1.2.3' or '1.2.3/rc1' |
| 18 | # | 27 | # |
| 19 | def get_sub(d): | 28 | def get_sub(d): |
