Patchwork [22/26] ocf-linux: Add ocf-linux to support openssl 1.0

login
register
mail settings
Submitter Saul Wold
Date Nov. 29, 2011, 11 p.m.
Message ID <d35b587f669a4b2304a0349ededd7cac315ea97c.1322607016.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/15657/
State New
Headers show

Comments

Saul Wold - Nov. 29, 2011, 11 p.m.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-connectivity/openssl/ocf-linux.inc    |   25 ++++++++++++++++++++
 .../openssl/ocf-linux_20100325.bb                  |    6 ++++
 2 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-connectivity/openssl/ocf-linux.inc
 create mode 100644 meta/recipes-connectivity/openssl/ocf-linux_20100325.bb

Patch

diff --git a/meta/recipes-connectivity/openssl/ocf-linux.inc b/meta/recipes-connectivity/openssl/ocf-linux.inc
new file mode 100644
index 0000000..f4ec7c9
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/ocf-linux.inc
@@ -0,0 +1,25 @@ 
+DESCRIPTION = "Install required headers to enable OCF Linux support"
+LICENSE = "BSD"
+
+LIC_FILES_CHKSUM = "file://README;md5=b02a793c9b7893b4ce1f39f0b231ccd7"
+ 
+INC_PR = "r3"
+
+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
+# 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() {
+    cd ${S}
+    tar xzf ocf-linux.tar.gz
+    install -d ${D}${includedir}/crypto
+    install -m 0644 ${S}/ocf/*.h ${D}${includedir}/crypto/
+}
+
+ALLOW_EMPTY = "1"
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-connectivity/openssl/ocf-linux_20100325.bb b/meta/recipes-connectivity/openssl/ocf-linux_20100325.bb
new file mode 100644
index 0000000..9dccc3c
--- /dev/null
+++ b/meta/recipes-connectivity/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"