mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	Default assert implementation calls fiprintf, which tries to acquire a lock and fails if it is executing in critical section or ISR
		
			
				
	
	
		
			28 lines
		
	
	
		
			897 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			897 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
ifdef CONFIG_NEWLIB_NANO_FORMAT
 | 
						|
LIBC := c_nano
 | 
						|
else  # CONFIG_NEWLIB_NANO_FORMAT
 | 
						|
LIBC := c
 | 
						|
endif  # CONFIG_NEWLIB_NANO_FORMAT
 | 
						|
 | 
						|
# Order of linking matters: libnewlib.a should go before libc.a
 | 
						|
COMPONENT_ADD_LDFLAGS := -lnewlib -l$(LIBC) -lm
 | 
						|
COMPONENT_ADD_INCLUDEDIRS := platform_include
 | 
						|
 | 
						|
ifdef CONFIG_SPIRAM_CACHE_WORKAROUND
 | 
						|
COMPONENT_ADD_LDFRAGMENTS := esp32-spiram-rom-functions-c.lf
 | 
						|
endif
 | 
						|
 | 
						|
COMPONENT_PRIV_INCLUDEDIRS := priv_include
 | 
						|
COMPONENT_SRCDIRS := . port
 | 
						|
 | 
						|
# Forces the linker to include heap, syscalls, pthread, and assert from this component,
 | 
						|
# instead of the implementations provided by newlib.
 | 
						|
COMPONENT_ADD_LDFLAGS += -u newlib_include_heap_impl
 | 
						|
COMPONENT_ADD_LDFLAGS += -u newlib_include_syscalls_impl
 | 
						|
COMPONENT_ADD_LDFLAGS += -u newlib_include_pthread_impl
 | 
						|
COMPONENT_ADD_LDFLAGS += -u newlib_include_assert_impl
 | 
						|
 | 
						|
COMPONENT_ADD_LDFRAGMENTS += newlib.lf
 | 
						|
 | 
						|
heap.o: CFLAGS += -fno-builtin
 |