]> code.ossystems Code Review - meta-freescale.git/commitdiff
cryptodev-qoriq: Fix runtime providers so 'cryptodev' is not taken as provider
authorZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 13 Oct 2015 06:15:55 +0000 (14:15 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:20 +0000 (15:03 -0300)
QorIQ targets should use FSL custom cryprodev instead of the one provided by
poky, fix the runtime providers to ensure 'cryptodev-qoriq' is taken as
provider.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/cryptodev/cryptodev-qoriq_1.7.inc

index 31b23a71dae3f592209075da9ee922df2a8cd7e7..ffd07a85fa55690b6ddebbbb84f90379a662af85 100644 (file)
@@ -6,6 +6,15 @@ RREPLACES_${PN} = "ocf-linux"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
+python() {
+    pkgs = d.getVar('PACKAGES', True).split()
+    for p in pkgs:
+        if 'cryptodev-qoriq' in p:
+            d.appendVar("RPROVIDES_%s" % p, p.replace('cryptodev-qoriq', 'cryptodev'))
+            d.appendVar("RCONFLICTS_%s" % p, p.replace('cryptodev-qoriq', 'cryptodev'))
+            d.appendVar("RREPLACES_%s" % p, p.replace('cryptodev-qoriq', 'cryptodev'))
+}
+
 SRC_URI = "http://download.gna.org/cryptodev-linux/cryptodev-linux-${PV}.tar.gz"
 SRC_URI[md5sum] = "0b63b3481cf2c90386b35f057481d36b"
 SRC_URI[sha256sum] = "41880533b53de4d7b3f054e230f576988dafb8eed7bef5ebcf6422bb2e3a3b25"