[posix] add RT_USING_POSIX_SOCKET (#5731)
This commit is contained in:
parent
f587a55bc2
commit
be892de35a
|
@ -46,8 +46,8 @@ endif
|
||||||
config BSP_DRV_EMAC
|
config BSP_DRV_EMAC
|
||||||
bool "Enable EMAC driver"
|
bool "Enable EMAC driver"
|
||||||
select RT_USING_LWIP
|
select RT_USING_LWIP
|
||||||
select RT_USING_SAL
|
select RT_USING_POSIX_FS
|
||||||
select SAL_USING_POSIX
|
select RT_USING_POSIX_SOCKET
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_DRV_AUDIO
|
config BSP_DRV_AUDIO
|
||||||
|
|
|
@ -83,13 +83,8 @@ menu "Onboard Peripheral Drivers"
|
||||||
default n
|
default n
|
||||||
select RT_USING_LWIP
|
select RT_USING_LWIP
|
||||||
select RT_LWIP_USING_HW_CHECKSUM
|
select RT_LWIP_USING_HW_CHECKSUM
|
||||||
|
select RT_USING_POSIX_FS
|
||||||
config BSP_USING_ETH_SAL
|
select RT_USING_POSIX_SOCKET
|
||||||
bool "Enable Ethernet with SAL"
|
|
||||||
depends on BSP_USING_ETH
|
|
||||||
default y
|
|
||||||
select RT_USING_SAL
|
|
||||||
select SAL_USING_POSIX
|
|
||||||
|
|
||||||
config PHY_USING_LAN8720A
|
config PHY_USING_LAN8720A
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -26,6 +26,12 @@ if RT_USING_POSIX_FS
|
||||||
select RT_USING_POSIX_POLL
|
select RT_USING_POSIX_POLL
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config RT_USING_POSIX_SOCKET
|
||||||
|
bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
|
||||||
|
select RT_USING_POSIX_SELECT
|
||||||
|
select RT_USING_SAL
|
||||||
|
default n
|
||||||
|
|
||||||
config RT_USING_POSIX_TERMIOS
|
config RT_USING_POSIX_TERMIOS
|
||||||
bool "Enable Terminal I/O <termios.h>"
|
bool "Enable Terminal I/O <termios.h>"
|
||||||
select RT_USING_POSIX_STDIO
|
select RT_USING_POSIX_STDIO
|
||||||
|
|
|
@ -35,19 +35,16 @@ if RT_USING_SAL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config SAL_USING_POSIX
|
config SAL_USING_POSIX
|
||||||
bool "Enable BSD socket operated by file system API"
|
bool
|
||||||
default n
|
depends on DFS_USING_POSIX
|
||||||
select RT_USING_POSIX_FS
|
default y
|
||||||
select RT_USING_POSIX_SELECT
|
|
||||||
help
|
help
|
||||||
|
Enable BSD socket operated by file system API
|
||||||
Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
|
Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
|
||||||
|
|
||||||
if !SAL_USING_POSIX
|
|
||||||
|
|
||||||
config SAL_SOCKETS_NUM
|
config SAL_SOCKETS_NUM
|
||||||
int "the maximum number of sockets"
|
int "the maximum number of sockets"
|
||||||
|
depends on !SAL_USING_POSIX
|
||||||
default 16
|
default 16
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue