http_server: fix sdmmc related build error for esp32s2beta

ESP32S2 does not have sdmmc, disable SD host for esp32s2
This commit is contained in:
Marius Vikhammer 2019-10-31 14:42:29 +08:00
parent 785cc69959
commit bf1977e48e
2 changed files with 4 additions and 1 deletions

View file

@ -21,6 +21,7 @@ menu "Example Configuration"
Deploy website to host. Deploy website to host.
It is recommended to choose this mode during developing. It is recommended to choose this mode during developing.
config EXAMPLE_WEB_DEPLOY_SD config EXAMPLE_WEB_DEPLOY_SD
depends on IDF_TARGET_ESP32
bool "Deploy website to SD card" bool "Deploy website to SD card"
help help
Deploy website to SD card. Deploy website to SD card.

View file

@ -7,7 +7,6 @@
CONDITIONS OF ANY KIND, either express or implied. CONDITIONS OF ANY KIND, either express or implied.
*/ */
#include "sdkconfig.h" #include "sdkconfig.h"
#include "driver/sdmmc_host.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "esp_vfs_semihost.h" #include "esp_vfs_semihost.h"
#include "esp_vfs_fat.h" #include "esp_vfs_fat.h"
@ -20,6 +19,9 @@
#include "mdns.h" #include "mdns.h"
#include "lwip/apps/netbiosns.h" #include "lwip/apps/netbiosns.h"
#include "protocol_examples_common.h" #include "protocol_examples_common.h"
#if CONFIG_EXAMPLE_WEB_DEPLOY_SD
#include "driver/sdmmc_host.h"
#endif
#define MDNS_INSTANCE "esp home web server" #define MDNS_INSTANCE "esp home web server"