From: Tan En De <ende.tan@linux.starfivetech.com>
To: buildroot@buildroot.org
Cc: Tan En De <ende.tan@linux.starfivetech.com>
Subject: [Buildroot] [3/3] package/libkcapi: support enabling lib-asym and lib-kpp
Date: Sat, 15 Oct 2022 16:47:57 +0800 [thread overview]
Message-ID: <20221015084757.277050-4-ende.tan@linux.starfivetech.com> (raw)
In-Reply-To: <20221015084757.277050-1-ende.tan@linux.starfivetech.com>
Add Kconfig options to allow enabling asymmetric cipher support
(--enable-lib-asym) and key protocol primitives support
(--enable-lib-kpp) in library.
Signed-off-by: Tan En De <ende.tan@linux.starfivetech.com>
---
package/libkcapi/Config.in | 6 ++++++
package/libkcapi/libkcapi.mk | 12 ++++++++++++
2 files changed, 18 insertions(+)
diff --git a/package/libkcapi/Config.in b/package/libkcapi/Config.in
index 176767e338..97eda31a4e 100644
--- a/package/libkcapi/Config.in
+++ b/package/libkcapi/Config.in
@@ -31,4 +31,10 @@ config BR2_PACKAGE_LIBKCAPI_TEST
config BR2_PACKAGE_LIBKCAPI_DGSTAPP
bool "build dgst application"
+config BR2_PACKAGE_LIBKCAPI_ASYM
+ bool "enable asymmetric ciphers library functions (kernel patching required)"
+
+config BR2_PACKAGE_LIBKCAPI_KPP
+ bool "enable KPP library functions (kernel patching required)"
+
endif
diff --git a/package/libkcapi/libkcapi.mk b/package/libkcapi/libkcapi.mk
index 214999ddd2..c3b655bb35 100644
--- a/package/libkcapi/libkcapi.mk
+++ b/package/libkcapi/libkcapi.mk
@@ -53,4 +53,16 @@ else
LIBKCAPI_CONF_OPTS += --disable-kcapi-dgstapp
endif
+ifeq ($(BR2_PACKAGE_LIBKCAPI_ASYM),y)
+LIBKCAPI_CONF_OPTS += --enable-lib-asym
+else
+LIBKCAPI_CONF_OPTS += --disable-lib-asym
+endif
+
+ifeq ($(BR2_PACKAGE_LIBKCAPI_KPP),y)
+LIBKCAPI_CONF_OPTS += --enable-lib-kpp
+else
+LIBKCAPI_CONF_OPTS += --disable-lib-kpp
+endif
+
$(eval $(autotools-package))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-10-15 10:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-15 8:47 [Buildroot] [0/3] package/libkcapi: bump version to 1.4.0 and add Kconfigs Tan En De
2022-10-15 8:47 ` [Buildroot] [1/3] package/libkcapi: bump version to 1.4.0 Tan En De
2022-10-15 8:47 ` [Buildroot] [2/3] package/libkcapi: support building kcapi-dgst application Tan En De
2022-10-15 8:47 ` Tan En De [this message]
2022-10-30 10:45 ` [Buildroot] [0/3] package/libkcapi: bump version to 1.4.0 and add Kconfigs Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221015084757.277050-4-ende.tan@linux.starfivetech.com \
--to=ende.tan@linux.starfivetech.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.