Return-Path: Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe003.messaging.microsoft.com [207.46.163.26]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2164EE0144A for ; Thu, 6 Dec 2012 05:38:21 -0800 (PST) Received: from mail76-co9-R.bigfish.com (10.236.132.251) by CO9EHSOBE023.bigfish.com (10.236.130.86) with Microsoft SMTP Server id 14.1.225.23; Thu, 6 Dec 2012 13:38:20 +0000 Received: from mail76-co9 (localhost [127.0.0.1]) by mail76-co9-R.bigfish.com (Postfix) with ESMTP id 7D262602B6 for ; Thu, 6 Dec 2012 13:38:20 +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 mail76-co9 (localhost.localdomain [127.0.0.1]) by mail76-co9 (MessageSwitch) id 1354801097817130_3648; Thu, 6 Dec 2012 13:38:17 +0000 (UTC) Received: from CO9EHSMHS026.bigfish.com (unknown [10.236.132.227]) by mail76-co9.bigfish.com (Postfix) with ESMTP id B86EA40165 for ; Thu, 6 Dec 2012 13:38:17 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS026.bigfish.com (10.236.130.36) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 6 Dec 2012 13:38:17 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 6 Dec 2012 13:38:16 +0000 Received: from b28495.ap.freescale.net (udp143739uds.ap.freescale.net [10.192.208.202]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id qB6Dc20T012179; Thu, 6 Dec 2012 06:38:14 -0700 From: To: Date: Thu, 6 Dec 2012 22:10:54 +0800 Message-ID: <1354803056-12793-7-git-send-email-b28495@freescale.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1354803056-12793-1-git-send-email-b28495@freescale.com> References: <1354803056-12793-1-git-send-email-b28495@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: b29882@freescale.com Subject: [PATCH 7/9] 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: Thu, 06 Dec 2012 13:38:21 -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(+), 0 deletions(-) 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.3.4