[linux-yocto] [PATCH] cryptodev: add Kbuild hooks

jianchuan.wang at windriver.com jianchuan.wang at windriver.com
Wed Nov 4 18:21:58 PST 2015


From: Jianchuan Wang <jianchuan.wang at windriver.com>

Hook cryptodev-linux into the kernel build as a tristate option.

Signed-off-by: Bruce Ashfield <bruce.ashfield at windriver.com>
Signed-off-by: Jianchuan Wang <jianchuan.wang at windriver.com>
---
 crypto/Kconfig  | 8 ++++++++
 crypto/Makefile | 1 +
 2 files changed, 9 insertions(+)

diff --git a/crypto/Kconfig b/crypto/Kconfig
index 362905e..3a1d0fa 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -21,6 +21,14 @@ if CRYPTO
 
 comment "Crypto core or helper"
 
+config CRYPTODEV
+	tristate "cryptodev module support"
+        help
+          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.
+
 config CRYPTO_FIPS
 	bool "FIPS 200 compliance"
 	depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
diff --git a/crypto/Makefile b/crypto/Makefile
index 97b7d3a..a39ac416 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -110,3 +110,4 @@ obj-$(CONFIG_ASYNC_CORE) += async_tx/
 obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/
 obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o
 obj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o
+obj-$(CONFIG_CRYPTODEV) += ../drivers/staging/crypto/cryptodev/
-- 
1.9.1



More information about the linux-yocto mailing list