Merge common EC directories
Split the EC define into base and variant. Merge the 3 ATmega chips as atmega, and the 2 ITE chips as ite. Tested that the generated files are identical. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
01885609e8
commit
69f97fe149
2
Makefile
2
Makefile
@@ -42,7 +42,7 @@ include $(BOARD_DIR)/board.mk
|
||||
EC_DIR=src/ec/$(EC)
|
||||
SRC+=$(wildcard $(EC_DIR)/*.c)
|
||||
INCLUDE+=$(wildcard $(EC_DIR)/include/ec/*.h) $(EC_DIR)/ec.mk
|
||||
CFLAGS+=-I$(EC_DIR)/include -D__EC__=$(EC) -D$(EC)
|
||||
CFLAGS+=-I$(EC_DIR)/include -D__EC__=$(EC_VARIANT) -D$(EC_VARIANT)
|
||||
include $(EC_DIR)/ec.mk
|
||||
|
||||
# The EC will define the architecture
|
||||
|
Reference in New Issue
Block a user