esp-netif: Make dependency on esp-eth optional

* esp-netif to optionally depend on esp-eth (only for l2tap config)
* esp_eth.h now includes the original ethernet header and the
ethernet-netif glue layer
* Updated examples and test to explicitely use esp-eth dependency if
needed
This commit is contained in:
David Cermak
2022-06-09 07:55:40 +00:00
committed by David Čermák
parent 680f3a50c2
commit 5e19b9c951
14 changed files with 44 additions and 16 deletions
@@ -19,12 +19,12 @@
#include "esp_log.h"
#include "esp_check.h"
#include "esp_netif.h"
#include "esp_eth.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/queue.h"
#if CONFIG_ESP_NETIF_L2_TAP
#define INVALID_FD (-1)
@@ -624,4 +624,3 @@ esp_err_t esp_vfs_l2tap_intf_unregister(const char *base_path)
return ESP_OK;
}
#endif // CONFIG_ESP_NETIF_L2_TAP