net: always compile listen.c and accept.c when enable CONFIG_NET
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
5ee16ee684
commit
93bdecf2c3
@ -20,24 +20,13 @@
|
|||||||
|
|
||||||
# Include socket source files
|
# Include socket source files
|
||||||
|
|
||||||
SOCK_CSRCS += bind.c connect.c getsockname.c getpeername.c
|
SOCK_CSRCS += accept.c bind.c connect.c getsockname.c getpeername.c
|
||||||
SOCK_CSRCS += recv.c recvfrom.c send.c sendto.c
|
SOCK_CSRCS += listen.c recv.c recvfrom.c send.c sendto.c
|
||||||
SOCK_CSRCS += socket.c socketpair.c net_close.c
|
SOCK_CSRCS += socket.c socketpair.c net_close.c
|
||||||
SOCK_CSRCS += recvmsg.c sendmsg.c
|
SOCK_CSRCS += recvmsg.c sendmsg.c
|
||||||
SOCK_CSRCS += net_dup2.c net_sockif.c net_poll.c net_vfcntl.c
|
SOCK_CSRCS += net_dup2.c net_sockif.c net_poll.c net_vfcntl.c
|
||||||
SOCK_CSRCS += net_fstat.c
|
SOCK_CSRCS += net_fstat.c
|
||||||
|
|
||||||
# TCP/IP support
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET_TCP),y)
|
|
||||||
SOCK_CSRCS += listen.c accept.c
|
|
||||||
|
|
||||||
# Local Unix domain support
|
|
||||||
|
|
||||||
else ifeq ($(CONFIG_NET_LOCAL_STREAM),y)
|
|
||||||
SOCK_CSRCS += listen.c accept.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Socket options
|
# Socket options
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET_SOCKOPTS),y)
|
ifeq ($(CONFIG_NET_SOCKOPTS),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user