[oe-commits] Chase Maupin : ocf-linux: add recipe to stage ocf linux headers
git version control
git at git.openembedded.org
Fri Jan 7 09:43:29 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: f3930609a879a14b75d4735f1cea125a39834213
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f3930609a879a14b75d4735f1cea125a39834213
Author: Chase Maupin <Chase.Maupin at ti.com>
Date: Fri Jan 7 05:39:45 2011 +0000
ocf-linux: add recipe to stage ocf linux headers
* 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 at ti.com>
Signed-off-by: Koen Kooi <koen at openembedded.org>
---
recipes/openssl/ocf-linux.inc | 23 +++++++++++++++++++++++
recipes/openssl/ocf-linux_20100325.bb | 6 ++++++
2 files changed, 29 insertions(+), 0 deletions(-)
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"
More information about the Openembedded-commits
mailing list