component.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. port/esp32/tcp_isn
  12. COMPONENT_SRCDIRS := \
  13. apps/dhcpserver \
  14. apps/ping \
  15. apps/sntp \
  16. lwip/src/api \
  17. lwip/src/apps/sntp \
  18. lwip/src/apps/netbiosns \
  19. lwip/src/core \
  20. lwip/src/core/ipv4 \
  21. lwip/src/core/ipv6 \
  22. lwip/src/netif \
  23. port/esp32 \
  24. port/esp32/freertos \
  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. ifdef CONFIG_LWIP_PPP_SUPPORT
  36. COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
  37. endif
  38. ifdef CONFIG_LWIP_TCP_ISN_HOOK
  39. COMPONENT_SRCDIRS += port/esp32/tcp_isn
  40. endif
  41. CFLAGS += -Wno-address # lots of LWIP source files evaluate macros that check address of stack variables
  42. lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
  43. lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
  44. lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
  45. COMPONENT_ADD_LDFRAGMENTS += linker.lf