net/netif : Expose configurations to Kconfig

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
This commit is contained in:
Akshai M 2020-07-28 23:10:18 +05:30
parent b52e3e1587
commit 1a844b3df6
2 changed files with 20 additions and 0 deletions

View File

@ -11,5 +11,6 @@ rsource "credman/Kconfig"
rsource "gnrc/Kconfig"
rsource "sock/Kconfig"
rsource "link_layer/Kconfig"
rsource "netif/Kconfig"
endmenu # Networking

19
sys/net/netif/Kconfig Normal file
View File

@ -0,0 +1,19 @@
# Copyright (c) 2020 Freie Universitaet Berlin
#
# 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_MODULE_NETIF
bool "Configure Network Interfaces"
depends on MODULE_NETIF
help
Configure Network Interfaces (NETIF) using Kconfig.
if KCONFIG_MODULE_NETIF
config NETIF_NAMELENMAX
int "Maximum length for an interface name"
default 8
endif # KCONFIG_MODULE_NETIF