All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers
@ 2011-01-06 21:39 Chase Maupin
  2011-01-06 21:39 ` [PATCH 2/2] openssl: add support for OCF linux drivers Chase Maupin
  2011-01-07  9:42 ` [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers Koen Kooi
  0 siblings, 2 replies; 3+ messages in thread
From: Chase Maupin @ 2011-01-06 21:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chase Maupin

From: Chase Maupin <Chase.Maupin@ti.com>

* This recipe is used to stage ocf linux headers in the proper
  usr/include/crypto directory structure expected by packages
  such as openssl.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
---
 recipes/openssl/ocf-linux.inc         |   23 +++++++++++++++++++++++
 recipes/openssl/ocf-linux_20100325.bb |    6 ++++++
 2 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/openssl/ocf-linux.inc
 create mode 100644 recipes/openssl/ocf-linux_20100325.bb

diff --git a/recipes/openssl/ocf-linux.inc b/recipes/openssl/ocf-linux.inc
new file mode 100644
index 0000000..9d8e089
--- /dev/null
+++ b/recipes/openssl/ocf-linux.inc
@@ -0,0 +1,23 @@
+DESCRIPTION = "Install required headers to enable OCF Linux support"
+LICENSE = "BSD"
+
+INC_PR = "r0"
+
+SRC_URI = "http://sourceforge.net/projects/ocf-linux/files/ocf-linux/${PV}/ocf-linux-${PV}.tar.gz"
+
+S = "${WORKDIR}/ocf-linux-${PV}"
+
+# Need to unpack the the ocf-linux.tar.gz file contained inside the
+# downloaded tarball
+do_install_prepend() {
+    cd ${S}
+    tar xzf ocf-linux.tar.gz
+}
+
+# Install the OCF Linux headers so that other packages such as openssl
+# can find them.  The headers must be in a crypto directory according to
+# the README file.
+do_install() {
+    install -d ${D}${includedir}/crypto
+    install -m 0644 ${S}/ocf/*.h ${D}${includedir}/crypto/
+}
diff --git a/recipes/openssl/ocf-linux_20100325.bb b/recipes/openssl/ocf-linux_20100325.bb
new file mode 100644
index 0000000..9dccc3c
--- /dev/null
+++ b/recipes/openssl/ocf-linux_20100325.bb
@@ -0,0 +1,6 @@
+require ocf-linux.inc
+
+PR = "${INC_PR}.0"
+
+SRC_URI[md5sum] = "ce5ad54aa94226d496df1f0f3cf0c11f"
+SRC_URI[sha256sum] = "9d17cbd13849939c70699b520280e3b94cf77401cdc131108d4aeaaeea587f6b"
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] openssl: add support for OCF linux drivers
  2011-01-06 21:39 [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers Chase Maupin
@ 2011-01-06 21:39 ` Chase Maupin
  2011-01-07  9:42 ` [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Chase Maupin @ 2011-01-06 21:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chase Maupin

From: Chase Maupin <Chase.Maupin@ti.com>

* 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>
---
 recipes/openssl/openssl_1.0.0c.bb |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/recipes/openssl/openssl_1.0.0c.bb b/recipes/openssl/openssl_1.0.0c.bb
index 1c0e37a..9348e53 100644
--- a/recipes/openssl/openssl_1.0.0c.bb
+++ b/recipes/openssl/openssl_1.0.0c.bb
@@ -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"
 
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers
  2011-01-06 21:39 [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers Chase Maupin
  2011-01-06 21:39 ` [PATCH 2/2] openssl: add support for OCF linux drivers Chase Maupin
@ 2011-01-07  9:42 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2011-01-07  9:42 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06-01-11 22:39, Chase Maupin wrote:
> From: Chase Maupin <Chase.Maupin@ti.com>
> 
> * This recipe is used to stage ocf linux headers in the proper
>   usr/include/crypto directory structure expected by packages
>   such as openssl.
> 
> Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>

Applied, thanks!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNJuAZMkyGM64RGpERAo26AJ9MV1AhWO++v10tEcR6aMm6E4RylQCePQNt
gGRHFWgPNK0VbbgvD2QJq3I=
=GmW7
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-07  9:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 21:39 [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers Chase Maupin
2011-01-06 21:39 ` [PATCH 2/2] openssl: add support for OCF linux drivers Chase Maupin
2011-01-07  9:42 ` [PATCH 1/2] ocf-linux: add recipe to stage ocf linux headers Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.