netutils/iperf: Configs were using EXAMPLES_ instead of NETUTILS_.

This commit is contained in:
Abdelatif Guettouche 2021-04-21 14:27:02 +01:00 committed by Xiang Xiao
parent 084cc55064
commit 80eba3aad1
5 changed files with 13 additions and 17 deletions

View File

@ -3,7 +3,7 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_IPERF
config NETUTILS_IPERF
bool "iperf example"
default n
depends on NET
@ -13,24 +13,24 @@ config EXAMPLES_IPERF
---help---
Enable the \"iperf example\"
if EXAMPLES_IPERF
if NETUTILS_IPERF
config EXAMPLES_IPERF_PROGNAME
config NETUTILS_IPERF_PROGNAME
string "Program name"
default "iperf"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config EXAMPLES_IPERF_PRIORITY
config NETUTILS_IPERF_PRIORITY
int "iperf task priority"
default 100
config EXAMPLES_IPERF_STACKSIZE
config NETUTILS_IPERF_STACKSIZE
int "iperf stack size"
default DEFAULT_TASK_STACKSIZE
config EXAMPLES_IPERFTEST_DEVNAME
config NETUTILS_IPERFTEST_DEVNAME
string "Wi-Fi Network device"
default "wlan0"

View File

@ -19,6 +19,6 @@
#
############################################################################
ifneq ($(CONFIG_EXAMPLES_IPERF),)
ifneq ($(CONFIG_NETUTILS_IPERF),)
CONFIGURED_APPS += $(APPDIR)/netutils/iperf
endif

View File

@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
# iperf example! built-in application info
PROGNAME = $(CONFIG_EXAMPLES_IPERF_PROGNAME)
PRIORITY = $(CONFIG_EXAMPLES_IPERF_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_IPERF_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_IPERF)
PROGNAME = $(CONFIG_NETUTILS_IPERF_PROGNAME)
PRIORITY = $(CONFIG_NETUTILS_IPERF_PRIORITY)
STACKSIZE = $(CONFIG_NETUTILS_IPERF_STACKSIZE)
MODULE = $(CONFIG_NETUTILS_IPERF)
# Iperf Example

View File

@ -92,7 +92,3 @@ Now on the host you should see something like:
This will tell you the link speed in Kbits/sec kilobits per second. If you want kilobytes, divide by 8.

View File

@ -34,8 +34,8 @@
* Pre-processor Definitions
****************************************************************************/
#ifdef CONFIG_EXAMPLES_IPERFTEST_DEVNAME
# define DEVNAME CONFIG_EXAMPLES_IPERFTEST_DEVNAME
#ifdef CONFIG_NETUTILS_IPERFTEST_DEVNAME
# define DEVNAME CONFIG_NETUTILS_IPERFTEST_DEVNAME
#else
# define DEVNAME "wlan0"
#endif