Skip to content

Commit

Permalink
Kconfig: Expose pkg/tinydtls configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiman Ismail committed Mar 6, 2020
1 parent d5b2aa8 commit a6432cf
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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."
2 changes: 1 addition & 1 deletion pkg/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
#
menu "Packages"

rsource "tinydtls/Kconfig"

endmenu # Packages

51 changes: 51 additions & 0 deletions pkg/tinydtls/Kconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6432cf

Please sign in to comment.