mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
dhcpd: Align makefile implementation
Improve the CMakeLists.txt to achieve the same compilation results as Makefile. Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
This commit is contained in:
parent
9f035ea0be
commit
09ddb06c9d
1 changed files with 20 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue