Add possibility to control variable trace from make
This commit is contained in:
		
							parent
							
								
									f519b94be7
								
							
						
					
					
						commit
						a377017c95
					
				
					 3 changed files with 38 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -180,7 +180,13 @@ ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
 | 
			
		|||
	VAPTH += $(SERIAL_PATH)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
SRC += $(QUANTUM_DIR)/variable_trace.c
 | 
			
		||||
ifneq ($(strip $(VARIABLE_TRACE)),)
 | 
			
		||||
	SRC += $(QUANTUM_DIR)/variable_trace.c
 | 
			
		||||
	OPT_DEFS += -DNUM_TRACED_VARIABLES=$(strip $(VARIABLE_TRACE))
 | 
			
		||||
ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),)
 | 
			
		||||
	OPT_DEFS += -DMAX_VARIABLE_TRACE_SIZE=$(strip $(MAX_VARIABLE_TRACE_SIZE))
 | 
			
		||||
endif
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Optimize size but this may cause error "relocation truncated to fit"
 | 
			
		||||
#EXTRALDFLAGS = -Wl,--relax
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue