Add EC define that is usable in macros
The `__EC__` define is not usable in macros for conditional compilation. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
		
				
					committed by
					
						
						Jeremy Soller
					
				
			
			
				
	
			
			
			
						parent
						
							851221da61
						
					
				
				
					commit
					cd8e76420d
				
			
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -42,7 +42,7 @@ include $(BOARD_DIR)/board.mk
 | 
				
			|||||||
EC_DIR=src/ec/$(EC)
 | 
					EC_DIR=src/ec/$(EC)
 | 
				
			||||||
SRC+=$(wildcard $(EC_DIR)/*.c)
 | 
					SRC+=$(wildcard $(EC_DIR)/*.c)
 | 
				
			||||||
INCLUDE+=$(wildcard $(EC_DIR)/include/ec/*.h) $(EC_DIR)/ec.mk
 | 
					INCLUDE+=$(wildcard $(EC_DIR)/include/ec/*.h) $(EC_DIR)/ec.mk
 | 
				
			||||||
CFLAGS+=-I$(EC_DIR)/include -D__EC__=$(EC)
 | 
					CFLAGS+=-I$(EC_DIR)/include -D__EC__=$(EC) -D$(EC)
 | 
				
			||||||
include $(EC_DIR)/ec.mk
 | 
					include $(EC_DIR)/ec.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The EC will define the architecture
 | 
					# The EC will define the architecture
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user