From cd8e76420dc631d89f4ec906a40503fcbb6f059f Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 16 Jul 2021 09:40:40 -0600 Subject: [PATCH] Add EC define that is usable in macros The `__EC__` define is not usable in macros for conditional compilation. Signed-off-by: Tim Crawford --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 07311de..c9aaab8 100644 --- a/Makefile +++ b/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) +CFLAGS+=-I$(EC_DIR)/include -D__EC__=$(EC) -D$(EC) include $(EC_DIR)/ec.mk # The EC will define the architecture