Return-Path: Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe001.messaging.microsoft.com [207.46.163.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7ED68E01213 for ; Tue, 27 Nov 2012 20:52:35 -0800 (PST) Received: from mail147-co9-R.bigfish.com (10.236.132.228) by CO9EHSOBE022.bigfish.com (10.236.130.85) with Microsoft SMTP Server id 14.1.225.23; Wed, 28 Nov 2012 04:52:34 +0000 Received: from mail147-co9 (localhost [127.0.0.1]) by mail147-co9-R.bigfish.com (Postfix) with ESMTP id A185754028A for ; Wed, 28 Nov 2012 04:52:34 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1de0h1202h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail147-co9 (localhost.localdomain [127.0.0.1]) by mail147-co9 (MessageSwitch) id 1354078352417538_23320; Wed, 28 Nov 2012 04:52:32 +0000 (UTC) Received: from CO9EHSMHS029.bigfish.com (unknown [10.236.132.226]) by mail147-co9.bigfish.com (Postfix) with ESMTP id 54555C40061 for ; Wed, 28 Nov 2012 04:52:32 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS029.bigfish.com (10.236.130.39) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 28 Nov 2012 04:52:31 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.2.318.3; Wed, 28 Nov 2012 04:52:30 +0000 Received: from bjsimics-desktop.ap.freescale.net (bjsimics-desktop-010192208197.ap.freescale.net [10.192.208.197]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qAS4qM7p025056; Tue, 27 Nov 2012 21:52:24 -0700 From: Zhenhua Luo To: Date: Wed, 28 Nov 2012 13:15:25 +0800 Message-ID: <1354079725-23007-1-git-send-email-b19537@freescale.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: b29882@freescale.com, Yashpal Dutta Subject: [meta-fsl-ppc denzil] cryptodev kernel module recipe X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 04:52:35 -0000 Content-Type: text/plain From: Yashpal Dutta 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 Signed-off-by: Zhenhua Luo --- 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