package/libkcapi: support building kcapi-enc application
diff mbox series

Message ID 20190820082732.15149-1-m.niestroj@grinn-global.com
State New
Headers show
Series
  • package/libkcapi: support building kcapi-enc application
Related show

Commit Message

Marcin Niestrój Aug. 20, 2019, 8:27 a.m. UTC
Just add a new Kconfig option in order to support building kcapi-enc
application.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
---
 package/libkcapi/Config.in   | 3 +++
 package/libkcapi/libkcapi.mk | 6 ++++++
 2 files changed, 9 insertions(+)

Patch
diff mbox series

diff --git a/package/libkcapi/Config.in b/package/libkcapi/Config.in
index 1dbcdc381b..8243f6b738 100644
--- a/package/libkcapi/Config.in
+++ b/package/libkcapi/Config.in
@@ -8,6 +8,9 @@  config BR2_PACKAGE_LIBKCAPI
 
 if BR2_PACKAGE_LIBKCAPI
 
+config BR2_PACKAGE_LIBKCAPI_ENCAPP
+	bool "build enc application"
+
 config BR2_PACKAGE_LIBKCAPI_HASHER
 	bool "build hasher application"
 	depends on !BR2_STATIC_LIBS # dlfcn.h
diff --git a/package/libkcapi/libkcapi.mk b/package/libkcapi/libkcapi.mk
index 48d34ffc40..dceacc0016 100644
--- a/package/libkcapi/libkcapi.mk
+++ b/package/libkcapi/libkcapi.mk
@@ -16,6 +16,12 @@  LIBKCAPI_CONF_ENV = \
 	ac_cv_path_DB2PS="" \
 	ac_cv_path_XMLTO=""
 
+ifeq ($(BR2_PACKAGE_LIBKCAPI_ENCAPP),y)
+LIBKCAPI_CONF_OPTS += --enable-kcapi-encapp
+else
+LIBKCAPI_CONF_OPTS += --disable-kcapi-encapp
+endif
+
 ifeq ($(BR2_PACKAGE_LIBKCAPI_HASHER),y)
 LIBKCAPI_CONF_OPTS += --enable-kcapi-hasher
 else