component.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Component Makefile
  3. #
  4. COMPONENT_SUBMODULES += lwip
  5. COMPONENT_ADD_INCLUDEDIRS := \
  6. include/apps \
  7. include/apps/sntp \
  8. lwip/src/include \
  9. port/esp32/include \
  10. port/esp32/include/arch
  11. COMPONENT_SRCDIRS := \
  12. apps/dhcpserver \
  13. apps/ping \
  14. apps/sntp \
  15. lwip/src/api \
  16. lwip/src/apps/sntp \
  17. lwip/src/apps/netbiosns \
  18. lwip/src/core \
  19. lwip/src/core/ipv4 \
  20. lwip/src/core/ipv6 \
  21. lwip/src/netif \
  22. port/esp32 \
  23. port/esp32/freertos \
  24. port/esp32/hooks \
  25. port/esp32/netif \
  26. port/esp32/debug
  27. ifndef CONFIG_IDF_TARGET_ESP32
  28. COMPONENT_OBJEXCLUDE := port/esp32/netif/ethernetif.o
  29. endif
  30. ifndef CONFIG_VFS_SUPPORT_IO
  31. COMPONENT_OBJEXCLUDE += port/esp32/vfs_lwip.o
  32. else
  33. COMPONENT_OBJEXCLUDE += port/esp32/no_vfs_syscalls.o
  34. endif
  35. ifndef CONFIG_OPENTHREAD_ENABLED
  36. COMPONENT_OBJEXCLUDE += port/esp32/netif/openthreadif.o
  37. endif
  38. ifndef CONFIG_LWIP_ICMP
  39. COMPONENT_OBJEXCLUDE += apps/ping/esp_ping.o apps/ping/ping.o apps/ping/ping_sock.o
  40. endif
  41. ifdef CONFIG_LWIP_PPP_SUPPORT
  42. COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
  43. endif
  44. ifndef CONFIG_LWIP_DHCPS
  45. COMPONENT_OBJEXCLUDE += apps/dhcpserver/dhcpserver.o
  46. endif
  47. CFLAGS += -Wno-address # lots of LWIP source files evaluate macros that check address of stack variables
  48. lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
  49. lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
  50. lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
  51. COMPONENT_ADD_LDFRAGMENTS += linker.lf