]> code.ossystems Code Review - meta-freescale.git/commitdiff
openssl: remove native dependency on cryptodev
authorCristian Stoica <cristian.stoica@freescale.com>
Fri, 17 Jul 2015 09:29:41 +0000 (17:29 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Jul 2015 02:26:58 +0000 (23:26 -0300)
The original intent of the code was good but the comment was missleading
since the cryptodev dependency was always set, even for the native package.

Dependency on acceleration engines (including cryptodev) should be disabled
for the native package to reduce the risk of incorrect builds and other
runtime issues. In particular, the chain of dependencies for such a high
profile crypto package should be minimal to help with code audit.

Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-ppc/recipes-connectivity/openssl/openssl_1.0.1i.bb

index ccc3126c14089034b89ee00f6b65fb3ff68f2b2e..54c052efdf8c3edb18f9a384853b4d685d365d4c 100644 (file)
@@ -1,10 +1,9 @@
 require openssl.inc
 
-# For target side versions of openssl enable support for OCF Linux driver
+# For target side versions of openssl enable support for cryptodev Linux driver
 # if they are available.
-DEPENDS += "cryptodev-linux"
-
-CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
+DEPENDS_class-target += "cryptodev-linux"
+CFLAG_class-target += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"