ESP32 Native version of Blinky, featureful controller code for WS2811/WS2812/NeoPixels
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

47 行
1.2KB

  1. From 963e5981b7e9212068ee6589983f5cd0e217f7b1 Mon Sep 17 00:00:00 2001
  2. From: jrhoffa <robots.are.love@gmail.com>
  3. Date: Sun, 27 Nov 2022 18:05:45 -0800
  4. Subject: [PATCH] Enable lwIP TFTP server support
  5. ---
  6. components/lwip/CMakeLists.txt | 4 ++++
  7. components/lwip/Kconfig | 7 +++++++
  8. 2 files changed, 11 insertions(+)
  9. diff --git a/components/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt
  10. index acd587de92..40dcb7f4f4 100644
  11. --- a/components/lwip/CMakeLists.txt
  12. +++ b/components/lwip/CMakeLists.txt
  13. @@ -148,6 +148,10 @@ if(CONFIG_LWIP_DHCPS)
  14. list(APPEND srcs "apps/dhcpserver/dhcpserver.c")
  15. endif()
  16. +if(CONFIG_LWIP_TFTPS)
  17. + list(APPEND srcs "lwip/src/apps/tftp/tftp_server.c")
  18. +endif()
  19. +
  20. idf_component_register(SRCS "${srcs}"
  21. INCLUDE_DIRS "${include_dirs}"
  22. LDFRAGMENTS linker.lf
  23. diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig
  24. index 57e8c2b045..5016394397 100644
  25. --- a/components/lwip/Kconfig
  26. +++ b/components/lwip/Kconfig
  27. @@ -871,6 +871,13 @@ menu "LWIP"
  28. endmenu # LWIP RAW API
  29. + menu "TFTP"
  30. + config LWIP_TFTPS
  31. + bool "Enable TFTP server"
  32. + default n
  33. +
  34. + endmenu # TFTP
  35. +
  36. menu "SNTP"
  37. config LWIP_SNTP_MAX_SERVERS
  38. --
  39. 2.25.1