[oe-commits] Denys Dmytriyenko : cryptodev-module: recipe for out-of-tree cryptodev device driver

git at git.openembedded.org git at git.openembedded.org
Tue Apr 8 12:52:16 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: d8634d145101c617596dff9b24f96980aa0e20b1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d8634d145101c617596dff9b24f96980aa0e20b1

Author: Denys Dmytriyenko <denys at ti.com>
Date:   Sun Apr  6 22:29:14 2014 -0400

cryptodev-module: recipe for out-of-tree cryptodev device driver

Depends on cryptodev-linux for providing a header file

Signed-off-by: Denys Dmytriyenko <denys at ti.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../cryptodev/cryptodev-module_1.6.bb              | 15 ++++++++++++
 ...talling-header-file-provided-by-another-p.patch | 28 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb b/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb
new file mode 100644
index 0000000..fdf07b2
--- /dev/null
+++ b/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb
@@ -0,0 +1,15 @@
+require cryptodev_${PV}.inc
+
+SUMMARY = "A /dev/crypto device driver kernel module"
+
+inherit module
+
+# Header file provided by a separate package
+DEPENDS += "cryptodev-linux"
+
+SRC_URI += "file://0001-Disable-installing-header-file-provided-by-another-p.patch"
+
+EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
+
+RCONFLICTS_${PN} = "ocf-linux"
+RREPLACES_${PN} = "ocf-linux"
diff --git a/meta/recipes-kernel/cryptodev/files/0001-Disable-installing-header-file-provided-by-another-p.patch b/meta/recipes-kernel/cryptodev/files/0001-Disable-installing-header-file-provided-by-another-p.patch
new file mode 100644
index 0000000..a580fc6
--- /dev/null
+++ b/meta/recipes-kernel/cryptodev/files/0001-Disable-installing-header-file-provided-by-another-p.patch
@@ -0,0 +1,28 @@
+From 8a884f55bd1527baa82fab68c186ba546273860c Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denys at ti.com>
+Date: Sun, 6 Apr 2014 19:51:39 -0400
+Subject: [PATCH] Disable installing header file provided by another package
+
+Signed-off-by: Denys Dmytriyenko <denys at ti.com>
+
+Upstream-Status: Inappropriate [ OE specific ]
+---
+ Makefile | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index d66ef26..8e97c6a 100644
+--- a/Makefile
++++ b/Makefile
+@@ -23,8 +23,6 @@ install: modules_install
+ 
+ modules_install:
+ 	make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install
+-	@echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..."
+-	@install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.h
+ 
+ clean:
+ 	make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
+-- 
+1.9.1
+



More information about the Openembedded-commits mailing list