espressif / esp-iot-bridge

A smart bridge to make both ESP and the other MCU or smart device can access the Internet.
Apache License 2.0
144 stars 49 forks source link

"gateway/priv_src" directory disappeared? #6

Closed zhuangqingshu closed 1 year ago

zhuangqingshu commented 2 years ago

Work on master branch "gateway/priv_src" directory not found But this directory is mentioned in "CMakeLists.txt" file I need to use the "gateway_eth.c" file in this directory

components\gateway\CMakeLists.txt

set(srcs "src/gateway_common.c") set(requires "") set(include_dirs "include") set(priv_includes "priv_inc") set(priv_srcs "")
if (CONFIG_GATEWAY_EXTERNAL_NETIF_STATION OR CONFIG_GATEWAY_DATA_FORWARDING_NETIF_SOFTAP) list(APPEND srcs "src/gateway_wifi.c") endif()
if (CONFIG_GATEWAY_EXTERNAL_NETIF_MODEM) list(APPEND srcs "src/gateway_modem.c")
    if(CONFIG_GATEWAY_MODEM_USB) list(APPEND srcs "src/modem_board_usb.c") endif()
    if(CONFIG_GATEWAY_MODEM_CUSTOM_BOARD) list(APPEND srcs "src/modem_board_sim7600.c") endif() endif()
if (CONFIG_GATEWAY_DATA_FORWARDING_NETIF_USB) list(APPEND priv_srcs "priv_src/gateway_usb.c") endif()
if (CONFIG_GATEWAY_EXTERNAL_NETIF_ETHERNET OR CONFIG_GATEWAY_DATA_FORWARDING_NETIF_ETHERNET) list(APPEND priv_srcs "priv_src/gateway_eth.c") endif()
if (CONFIG_GATEWAY_DATA_FORWARDING_NETIF_SDIO) list(APPEND priv_srcs "priv_src/gateway_sdio.c") endif()
if (CONFIG_GATEWAY_DATA_FORWARDING_NETIF_SPI) list(APPEND priv_srcs "priv_src/gateway_spi.c") endif()
x893 commented 2 years ago

Also no file gateway_spi.c

if (CONFIG_GATEWAY_DATA_FORWARDING_NETIF_SPI) list(APPEND priv_srcs "priv_src/gateway_spi.c") endif()

xcguang commented 2 years ago
image
x893 commented 2 years ago

Thanks you very much. Now all works fine.