From patchwork Sat Apr 27 20:09:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 240174 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 1C2192C00B0 for ; Sun, 28 Apr 2013 06:10:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A80C710B852; Sat, 27 Apr 2013 20:10:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LDTvB9cRhWWR; Sat, 27 Apr 2013 20:10:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 256C6101F41; Sat, 27 Apr 2013 20:10:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4DE108F74B for ; Sat, 27 Apr 2013 20:10:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CA6FD8D0A5 for ; Sat, 27 Apr 2013 20:10:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T2OlmKrzVUy7 for ; Sat, 27 Apr 2013 20:10:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id C08DB8D0AA for ; Sat, 27 Apr 2013 20:10:10 +0000 (UTC) Received: from asgard (host227.190-225-101.telecom.net.ar [190.225.101.227]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.6/8.14.6) with ESMTP id r3RKA3fX021962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 27 Apr 2013 20:10:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1367093408; bh=Pqmn4dmjznzEhUzI5Fm4Pu4u+p9g63Wl6vWnlY0Acfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fdreNcN56iGg7u2TaG16+z7XtpMRXV+YFZVZ7hK8i/jR2Zb+lM8M/kjG0XldjFPJ9 9XPJ6u+9Qj/IGn/cQVwyN0ZM1/K1F3a4ZMpmDpdk429TvRilKHnRjUIjWVJdIsjOMV 5qt6Kgt2lpYAFD+7wRXgXt+KZTdzfyAg7G3+GSco= Received: by asgard (sSMTP sendmail emulation); Sat, 27 Apr 2013 17:10:03 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Sat, 27 Apr 2013 17:09:46 -0300 Message-Id: <1367093389-23877-3-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1367093389-23877-1-git-send-email-gustavo@zacarias.com.ar> References: <1367093389-23877-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.97.7 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 3/6] cryptodev: add new virtual X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Gustavo Zacarias --- package/Config.in | 1 + package/cryptodev/Config.in | 37 +++++++++++++++++++++++++++++++++++++ package/cryptodev/cryptodev.mk | 24 ++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 package/cryptodev/Config.in create mode 100644 package/cryptodev/cryptodev.mk diff --git a/package/Config.in b/package/Config.in index c8badad..c0cca5b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -384,6 +384,7 @@ endmenu menu "Crypto" source "package/beecrypt/Config.in" +source "package/cryptodev/Config.in" source "package/gnutls/Config.in" source "package/libgcrypt/Config.in" source "package/libgpg-error/Config.in" diff --git a/package/cryptodev/Config.in b/package/cryptodev/Config.in new file mode 100644 index 0000000..3f08e9e --- /dev/null +++ b/package/cryptodev/Config.in @@ -0,0 +1,37 @@ +config BR2_PACKAGE_CRYPTODEV + bool "cryptodev support" + depends on BR2_LINUX_KERNEL + help + Select the desired cryptodev implementation. + +if BR2_PACKAGE_CRYPTODEV + +choice + prompt "cryptodev variant" + default BR2_PACKAGE_CRYPTODEV_LINUX if !BR2_microblaze + help + Select the cryptodev implementation. + +config BR2_PACKAGE_CRYPTODEV_LINUX + bool "cryptodev-linux" + depends on !BR2_microblaze + help + Cryptodev-linux is a device that allows access to Linux kernel + cryptographic drivers; thus allowing userspace applications + to take advantage of hardware accelerators. + + http://cryptodev-linux.org/index.html + +config BR2_PACKAGE_OCF_LINUX + bool "ocf-linux" + help + OCF-Linux is a Linux port of the OpenBSD/FreeBSD Cryptographic + Framework (OCF). This port aims to bring full asynchronous HW/SW + crypto acceleration to the Linux kernel and applications + running under Linux. + + http://ocf-linux.sourceforge.net/ + +endchoice + +endif diff --git a/package/cryptodev/cryptodev.mk b/package/cryptodev/cryptodev.mk new file mode 100644 index 0000000..b6f4a42 --- /dev/null +++ b/package/cryptodev/cryptodev.mk @@ -0,0 +1,24 @@ +############################################################# +# +# Virtual cryptodev package +# +############################################################# + +CRYPTODEV_SOURCE = + +ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y) +CRYPTODEV_DEPENDENCIES += cryptodev-linux +endif + +ifeq ($(BR2_PACKAGE_OCF_LINUX),y) +CRYPTODEV_DEPENDENCIES += ocf-linux +endif + +ifeq ($(CRYPTODEV_DEPENDENCIES),) +define CRYPTODEV_CONFIGURE_CMDS + echo "No CRYPTODEV implementation defined. Configuration error" + exit 1 +endef +endif + +$(eval $(generic-package))