1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Kconfig: Expose pkg/tinydtls configurations

This commit is contained in:
Aiman Ismail 2019-12-19 14:36:32 +01:00
parent d5b2aa8a2f
commit a6432cff92
3 changed files with 53 additions and 5 deletions

View File

@ -9,15 +9,12 @@ mainmenu "RIOT Configuration"
# For now, get used modules as macros from this file (see kconfig.mk)
osource "$(KCONFIG_GENERATED_DEPENDENCIES)"
rsource "drivers/Kconfig"
rsource "sys/Kconfig"
rsource "pkg/Kconfig"
# The application may declare new symbols as well
osource "$(APPDIR)/Kconfig"
rsource "drivers/Kconfig"
rsource "sys/Kconfig"
rsource "pkg/Kconfig"
comment "RIOT is in a migration phase."
comment "Some configuration options may not be here. Use CFLAGS instead."

View File

@ -6,6 +6,6 @@
#
menu "Packages"
rsource "tinydtls/Kconfig"
endmenu # Packages

51
pkg/tinydtls/Kconfig Normal file
View File

@ -0,0 +1,51 @@
# Copyright (c) 2019 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_PKG_TINYDTLS
bool "Configure tinydtls"
depends on PKG_TINYDTLS
help
Configure tinydtls package via Kconfig.
if KCONFIG_PKG_TINYDTLS
# TODO change to multiple choice after DTLS application support enabling more than one types of cypher suites
choice
bool "Cipher suite to enable"
default DTLS_PSK
config DTLS_PSK
bool "TLS_PSK_WITH_AES_128_CCM_8"
config DTLS_ECC
bool "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8"
endchoice
config DTLS_DEBUG
bool "Enable debug log"
help
Enable debug log output for tinydtls
config DTLS_CONTEXT_MAX
int "Max DTLS context"
default 2
help
The maximum number of DTLS context at the same time.
config DTLS_PEER_MAX
int "Max number of peers"
default 1
help
The maximum number of DTLS peers.
config DTLS_HANDSHAKE_MAX
int "Max concurrent handshake"
default 1
help
The maximum number of concurrent DTLS handshakes.
endif # KCONFIG_PKG_TINYDTLS