From a6432cff923f4d8b214cae0a2b592b83efd21cb5 Mon Sep 17 00:00:00 2001 From: Aiman Ismail Date: Thu, 19 Dec 2019 14:36:32 +0100 Subject: [PATCH] Kconfig: Expose pkg/tinydtls configurations --- Kconfig | 5 +---- pkg/Kconfig | 2 +- pkg/tinydtls/Kconfig | 51 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 pkg/tinydtls/Kconfig diff --git a/Kconfig b/Kconfig index 68ac78b403cd..086360a49aab 100644 --- a/Kconfig +++ b/Kconfig @@ -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." diff --git a/pkg/Kconfig b/pkg/Kconfig index bbaeebb66fbd..e07b0b27fa22 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -6,6 +6,6 @@ # menu "Packages" +rsource "tinydtls/Kconfig" endmenu # Packages - diff --git a/pkg/tinydtls/Kconfig b/pkg/tinydtls/Kconfig new file mode 100644 index 000000000000..320f990701f0 --- /dev/null +++ b/pkg/tinydtls/Kconfig @@ -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