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:
Tim Crawford
2022-10-13 17:46:26 -06:00
committed by Tim Crawford
parent 01885609e8
commit 69f97fe149
33 changed files with 68 additions and 57 deletions

View File

@@ -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