cmake:complete missing changes during reforming for net

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-09-13 17:35:54 +08:00 committed by Xiang Xiao
parent dcadd87919
commit 7a9d3c03e4
4 changed files with 19 additions and 11 deletions

View File

@ -22,6 +22,10 @@ if(CONFIG_NET_ICMP AND NOT CONFIG_NET_ICMP_NO_STACK)
# ICMP source files # ICMP source files
set(SRCS icmp_input.c icmp_reply.c) set(SRCS icmp_input.c icmp_reply.c)
if(NOT "${CONFIG_NET_ICMP_PMTU_ENTRIES}" STREQUAL "0")
list(APPEND SRCS icmp_pmtu.c)
endif()
if(CONFIG_NET_ICMP_SOCKET) if(CONFIG_NET_ICMP_SOCKET)
list( list(
APPEND APPEND

View File

@ -52,5 +52,9 @@ if(CONFIG_NET_ICMPv6 AND NOT CONFIG_NET_ICMPv6_NO_STACK)
list(APPEND SRCS icmpv6_radvertise.c) list(APPEND SRCS icmpv6_radvertise.c)
endif() endif()
if(NOT "${CONFIG_NET_ICMPv6_PMTU_ENTRIES}" STREQUAL "0")
list(APPEND SRCS icmpv6_pmtu.c)
endif()
target_sources(net PRIVATE ${SRCS}) target_sources(net PRIVATE ${SRCS})
endif() endif()

View File

@ -28,14 +28,6 @@ if(NOT CONFIG_DISABLE_MOUNTPOINT
# General network statistics # General network statistics
if(CONFIG_NET_STATISTICS)
list(APPEND SRCS net_statistics.c)
if(CONFIG_NET_MLD)
list(APPEND SRCS net_mld.c)
endif()
endif()
if(CONFIG_NET_STATISTICS) if(CONFIG_NET_STATISTICS)
list(APPEND SRCS net_statistics.c) list(APPEND SRCS net_statistics.c)
if(CONFIG_NET_MLD) if(CONFIG_NET_MLD)

View File

@ -76,11 +76,19 @@ if(CONFIG_NET_TCP AND NOT CONFIG_NET_TCP_NO_STACK)
if(CONFIG_NET_TCP_WRITE_BUFFERS) if(CONFIG_NET_TCP_WRITE_BUFFERS)
list(APPEND SRCS tcp_wrbuffer.c) list(APPEND SRCS tcp_wrbuffer.c)
endif()
# TCP congestion control
if(CONFIG_NET_TCP_CC_NEWRENO)
list(APPEND SRCS tcp_cc.c)
endif()
# TCP debug
if(CONFIG_DEBUG_FEATURES) if(CONFIG_DEBUG_FEATURES)
list(APPEND SRCS tcp_dump.c) list(APPEND SRCS tcp_dump.c)
endif() endif()
endif()
target_sources(net PRIVATE ${SRCS}) target_sources(net PRIVATE ${SRCS})
endif() endif()