From a1dbc8f37d9a850aba7c943d4b9e6afe9c9ca180 Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Fri, 10 May 2024 15:07:29 +0800 Subject: [PATCH] examples/telnetd: fix compile telnetd multi definition error Compiling system/telnetd and examples/telnetd at the same time could not generate two builtin commands, Because the name is the same, one will be overwritten, but there will be no compilation errors. Signed-off-by: zhanghongyu --- examples/telnetd/CMakeLists.txt | 2 +- examples/telnetd/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/telnetd/CMakeLists.txt b/examples/telnetd/CMakeLists.txt index 737d8bb76..941b53524 100644 --- a/examples/telnetd/CMakeLists.txt +++ b/examples/telnetd/CMakeLists.txt @@ -21,7 +21,7 @@ if(CONFIG_EXAMPLES_TELNETD) nuttx_add_application( NAME - telnetd + example_telnetd PRIORITY ${CONFIG_EXAMPLES_TELNETD_DAEMONPRIO} STACKSIZE diff --git a/examples/telnetd/Makefile b/examples/telnetd/Makefile index f12fec619..35ebef77c 100644 --- a/examples/telnetd/Makefile +++ b/examples/telnetd/Makefile @@ -26,7 +26,7 @@ MAINSRC = telnetd.c # Buttons built-in application info -PROGNAME = telnetd +PROGNAME = example_telnetd PRIORITY = $(CONFIG_EXAMPLES_TELNETD_DAEMONPRIO) STACKSIZE = $(CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE) MODULE = $(CONFIG_EXAMPLES_TELNETD)