All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-ppc denzil] cryptodev kernel module recipe
@ 2012-11-28  5:15 Zhenhua Luo
  2012-11-28  4:53 ` McClintock Matthew-B29882
  2012-11-28 11:17 ` Otavio Salvador
  0 siblings, 2 replies; 15+ messages in thread
From: Zhenhua Luo @ 2012-11-28  5:15 UTC (permalink / raw)
  To: meta-freescale; +Cc: b29882, Yashpal Dutta

From: Yashpal Dutta <yashpal.dutta@freescale.com>

This is a /dev/crypto device driver, equivalent to those in OpenBSD or FreeBSD.
The main idea is to access of existing ciphers in kernel space from userspace,
thus enabling re-use of a hardware implementation of a cipher.

Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com>
Signed-off-by: Zhenhua Luo <b19537@freescale.com>
---
 recipes-kernel/cryptodev/cryptodev_1.5.bb          |   17 +++++++++++++
 .../cryptodev/files/makefile_fixup.patch           |   26 ++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 recipes-kernel/cryptodev/cryptodev_1.5.bb
 create mode 100644 recipes-kernel/cryptodev/files/makefile_fixup.patch

diff --git a/recipes-kernel/cryptodev/cryptodev_1.5.bb b/recipes-kernel/cryptodev/cryptodev_1.5.bb
new file mode 100644
index 0000000..0696e2a
--- /dev/null
+++ b/recipes-kernel/cryptodev/cryptodev_1.5.bb
@@ -0,0 +1,17 @@
+SECTION = "devel"
+SUMMARY = "Linux Cryptodev KERNEL MODULE"
+DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+RCONFLICTS_${PN} = "ocf-linux"
+
+inherit module
+
+SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7"
+
+SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \
+           file://makefile_fixup.patch"
+
+EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
+
+S = "${WORKDIR}/git"
diff --git a/recipes-kernel/cryptodev/files/makefile_fixup.patch b/recipes-kernel/cryptodev/files/makefile_fixup.patch
new file mode 100644
index 0000000..323aacd
--- /dev/null
+++ b/recipes-kernel/cryptodev/files/makefile_fixup.patch
@@ -0,0 +1,26 @@
+diff --git a/Makefile b/Makefile
+index 2be8825..b36d68c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,7 @@
+ KBUILD_CFLAGS += -I$(src)
+ KERNEL_DIR = /lib/modules/$(shell uname -r)/build
+ VERSION = 1.5
++PREFIX =
+ 
+ cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o
+ 
+@@ -12,10 +13,10 @@ build: version.h
+ version.h: Makefile
+ 	@echo "#define VERSION \"$(VERSION)\"" > version.h
+ 
+-install:
++modules_install:
+ 	make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install
+-	@echo "Installing cryptodev.h in /usr/include/crypto ..."
+-	@install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h
++	@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.7.9.5




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

end of thread, other threads:[~2012-11-29  1:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-28  5:15 [meta-fsl-ppc denzil] cryptodev kernel module recipe Zhenhua Luo
2012-11-28  4:53 ` McClintock Matthew-B29882
2012-11-28  5:00   ` Luo Zhenhua-B19537
2012-11-28  5:02     ` Dutta Yashpal-B05456
2012-11-28  5:04       ` McClintock Matthew-B29882
2012-11-28  5:05       ` Luo Zhenhua-B19537
2012-11-29  1:06     ` Bob Cochran
2012-11-28 11:17 ` Otavio Salvador
2012-11-28 16:50   ` McClintock Matthew-B29882
2012-11-28 17:57     ` Otavio Salvador
2012-11-28 18:00       ` McClintock Matthew-B29882
2012-11-28 18:57         ` Otavio Salvador
2012-11-28 19:33           ` McClintock Matthew-B29882
2012-11-28 19:52             ` Otavio Salvador
2012-11-28 19:55               ` McClintock Matthew-B29882

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.