openssl: add support for OCF linux drivers
authorChase Maupin <Chase.Maupin@ti.com>
Fri, 7 Jan 2011 05:39:46 +0000 (05:39 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 7 Jan 2011 09:45:26 +0000 (10:45 +0100)
* This patch adds support for openssl to use OCF linux drivers
  if they are available.
    * If the drivers are not available then openssl will
      default back to its own software implementation.
* Only enabled for the target side version since it doesn't
  make much sense for the host system.
* Bump the PR.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/openssl/openssl_1.0.0c.bb

index 1c0e37a..9348e53 100644 (file)
@@ -1,10 +1,16 @@
 inherit pkgconfig
 
 require openssl.inc
+
+# For target side versions of openssl enable support for OCF Linux driver
+# if they are available.
+DEPENDS += "ocf-linux"
+CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
+
 SRC_URI[src.md5sum] = "ff8fb85610aef328315a9decbb2712e4"
 SRC_URI[src.sha256sum] = "f731b36de3edaa361179ae6f449668b248a360e34e31e92902d976e9b9d604eb"
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 DEFAULT_PREFERENCE = "-1"