vfs: Warn aobut using deprecated select option

Add LWIP_USE_ONLY_LWIP_SELECT for compatibility, as the dependency may
break backward compatibility if LWIP_USE_ONLY_LWIP_SELECT=y.
This commit is contained in:
David Cermak 2021-09-20 16:17:59 +02:00
parent 3389384613
commit b597dbff7c
2 changed files with 11 additions and 0 deletions

View File

@ -81,6 +81,12 @@ menu "LWIP"
the maximum amount of sockets here. The valid value is from 1
to 16.
config LWIP_USE_ONLY_LWIP_SELECT
bool "Support LWIP socket select() only (DEPRECATED)"
default n
help
This option is deprecated. Do not use this option, use VFS_SUPPORT_SELECT instead.
config LWIP_SO_LINGER
bool "Enable SO_LINGER processing"
default n

View File

@ -21,6 +21,11 @@
#include "esp_vfs_private.h"
#include "sdkconfig.h"
// Warn about using deprecated option
#ifdef CONFIG_LWIP_USE_ONLY_LWIP_SELECT
#warning LWIP_USE_ONLY_LWIP_SELECT is deprecated: Please use VFS_SUPPORT_SELECT instead
#endif
#ifdef CONFIG_VFS_SUPPRESS_SELECT_DEBUG_OUTPUT
#define LOG_LOCAL_LEVEL ESP_LOG_NONE
#endif //CONFIG_VFS_SUPPRESS_SELECT_DEBUG_OUTPUT