component.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. ifdef CONFIG_LWIP_PPP_SUPPORT
  31. COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
  32. endif
  33. ifdef CONFIG_LWIP_TCP_ISN_HOOK
  34. COMPONENT_SRCDIRS += port/esp32/tcp_isn
  35. endif
  36. CFLAGS += -Wno-address # lots of LWIP source files evaluate macros that check address of stack variables
  37. lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
  38. lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
  39. lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
  40. COMPONENT_ADD_LDFRAGMENTS += linker.lf