mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
package/open62541: add encryption support
For the OpenSSL case, only OpenSSL is supported, as open62541 does not build with LibreSSL. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
f29aecc64d
commit
1ebd10fd23
@@ -7,6 +7,26 @@ config BR2_PACKAGE_OPEN62541
|
|||||||
|
|
||||||
if BR2_PACKAGE_OPEN62541
|
if BR2_PACKAGE_OPEN62541
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "encryption"
|
||||||
|
default BR2_PACKAGE_OPEN62541_ENCRYPTION_NONE
|
||||||
|
help
|
||||||
|
Encryption support
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPEN62541_ENCRYPTION_NONE
|
||||||
|
bool "none"
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPEN62541_ENCRYPTION_MBEDTLS
|
||||||
|
bool "mbedtls"
|
||||||
|
select BR2_PACKAGE_MBEDTLS
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPEN62541_ENCRYPTION_OPENSSL
|
||||||
|
bool "openssl"
|
||||||
|
select BR2_PACKAGE_OPENSSL
|
||||||
|
select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "namespace zero nodes"
|
prompt "namespace zero nodes"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -23,6 +23,16 @@ OPEN62541_CONF_OPTS = \
|
|||||||
-DUA_ENABLE_HARDENING=OFF \
|
-DUA_ENABLE_HARDENING=OFF \
|
||||||
-DUA_FORCE_WERROR=OFF
|
-DUA_FORCE_WERROR=OFF
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPEN62541_ENCRYPTION_MBEDTLS),y)
|
||||||
|
OPEN62541_DEPENDENCIES += mbedtls
|
||||||
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_ENCRYPTION=MBEDTLS
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPEN62541_ENCRYPTION_OPENSSL),y)
|
||||||
|
OPEN62541_DEPENDENCIES += openssl
|
||||||
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_ENCRYPTION=OPENSSL
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_MINIMAL),y)
|
ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_MINIMAL),y)
|
||||||
OPEN62541_CONF_OPTS += -DUA_NAMESPACE_ZERO=MINIMAL
|
OPEN62541_CONF_OPTS += -DUA_NAMESPACE_ZERO=MINIMAL
|
||||||
else ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_REDUCED),y)
|
else ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_REDUCED),y)
|
||||||
|
|||||||
Reference in New Issue
Block a user