mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 00:21:44 +01:00 
			
		
		
		
	Added lwIP hooks which could be optionally overwritten in the application code. These three options are provided in Kconfig: * NONE: No hook support * DEFAULT: Default implementation is provided. If IDF doesn't have a specific hook implementation, an empty stub is provided, which could be overwritten by strong implementation in application code. * CUSTOM: Hooks are declared only to be implemented in application code. Merges https://github.com/espressif/esp-idf/pull/6034
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# Component Makefile
 | 
						|
#
 | 
						|
COMPONENT_SUBMODULES += lwip
 | 
						|
 | 
						|
COMPONENT_ADD_INCLUDEDIRS := \
 | 
						|
	include/apps \
 | 
						|
	include/apps/sntp \
 | 
						|
	lwip/src/include \
 | 
						|
	port/esp32/include \
 | 
						|
	port/esp32/include/arch
 | 
						|
 | 
						|
COMPONENT_SRCDIRS := \
 | 
						|
	apps/dhcpserver \
 | 
						|
	apps/ping \
 | 
						|
	apps/sntp \
 | 
						|
	lwip/src/api \
 | 
						|
	lwip/src/apps/sntp \
 | 
						|
	lwip/src/apps/netbiosns \
 | 
						|
	lwip/src/core \
 | 
						|
	lwip/src/core/ipv4 \
 | 
						|
	lwip/src/core/ipv6 \
 | 
						|
	lwip/src/netif \
 | 
						|
	port/esp32 \
 | 
						|
	port/esp32/freertos \
 | 
						|
	port/esp32/hooks \
 | 
						|
	port/esp32/netif \
 | 
						|
	port/esp32/debug
 | 
						|
 | 
						|
ifndef CONFIG_IDF_TARGET_ESP32
 | 
						|
    COMPONENT_OBJEXCLUDE := port/esp32/netif/ethernetif.o
 | 
						|
endif
 | 
						|
ifndef CONFIG_VFS_SUPPORT_IO
 | 
						|
    COMPONENT_OBJEXCLUDE += port/esp32/vfs_lwip.o
 | 
						|
else
 | 
						|
    COMPONENT_OBJEXCLUDE += port/esp32/no_vfs_syscalls.o
 | 
						|
endif
 | 
						|
 | 
						|
ifdef CONFIG_LWIP_PPP_SUPPORT
 | 
						|
    COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
 | 
						|
endif
 | 
						|
 | 
						|
CFLAGS += -Wno-address  # lots of LWIP source files evaluate macros that check address of stack variables
 | 
						|
 | 
						|
lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
 | 
						|
lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
 | 
						|
lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
 | 
						|
 | 
						|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
 |