feat(vfs): Disable VFS used by default

Console component must use VFS.
This commit is contained in:
dongheng
2019-04-17 19:48:07 +08:00
parent 904c402359
commit 2ad3067abd
3 changed files with 7 additions and 2 deletions
components
lwip/port/esp8266/include
newlib/newlib/port
vfs

@ -1425,7 +1425,11 @@ size_t memp_malloc_get_size(size_t type);
* re implement read/write/close/ioctl/fnctl to send the requested action to the right
* library (sharing select will need more work though).
*/
#ifdef CONFIG_USING_ESP_VFS
#define LWIP_SOCKET_OFFSET (FD_SETSIZE - CONFIG_LWIP_MAX_SOCKETS)
#else
#define LWIP_SOCKET_OFFSET 0
#endif
/**
* LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT

@ -13,10 +13,11 @@
// limitations under the License.
#include <sys/select.h>
#include "esp_vfs.h"
#include "sdkconfig.h"
#ifdef CONFIG_USING_ESP_VFS
#include "esp_vfs.h"
#ifdef CONFIG_USE_ONLY_LWIP_SELECT
#include "lwip/sockets.h"

@ -2,7 +2,7 @@ menu "Virtual file system"
config USING_ESP_VFS
bool "Using espressif VFS"
default y
default n
help
Enable this option, espressif VFS can be used. Users can use APIs like "open", "read", "write"
and so on to operate I/O device which is registered.