This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 09ddb06c9 dhcpd: Align makefile implementation
09ddb06c9 is described below

commit 09ddb06c9d344c93705322b2e4ca4bc304f38293
Author: zhangshuai39 <[email protected]>
AuthorDate: Thu Apr 10 19:43:32 2025 +0800

    dhcpd: Align makefile implementation
    
    Improve the CMakeLists.txt to achieve the same compilation results as 
Makefile.
    
    Signed-off-by: zhangshuai39 <[email protected]>
---
 examples/dhcpd/CMakeLists.txt | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/examples/dhcpd/CMakeLists.txt b/examples/dhcpd/CMakeLists.txt
index 0305ab59c..b59cb5485 100644
--- a/examples/dhcpd/CMakeLists.txt
+++ b/examples/dhcpd/CMakeLists.txt
@@ -25,10 +25,28 @@ if(CONFIG_EXAMPLES_DHCPD)
     NAME
     dhcpd
     SRCS
-    host.c
     target.c
+    dhcpd_daemon.c
     STACKSIZE
-    2048)
+    ${CONFIG_DEFAULT_TASK_STACKSIZE})
+
+  nuttx_add_application(
+    NAME
+    dhcpd_start
+    SRCS
+    dhcpd_start.c
+    dhcpd_daemon.c
+    STACKSIZE
+    ${CONFIG_DEFAULT_TASK_STACKSIZE})
+
+  nuttx_add_application(
+    NAME
+    dhcpd_stop
+    SRCS
+    dhcpd_stop.c
+    dhcpd_daemon.c
+    STACKSIZE
+    ${CONFIG_DEFAULT_TASK_STACKSIZE})
 
   add_definitions(-DCONFIG_NETUTILS_DHCPD_HOST=1 -DHAVE_SO_REUSEADDR=1
                   -DHAVE_SO_BROADCAST=1)

Reply via email to