From a63a12e9c4fd6888d5407b09626d18d6cde1cefd Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 6 Jan 2022 20:52:49 -0500 Subject: [PATCH] mk files refactoring saving build --- firmware/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/Makefile b/firmware/Makefile index 4419c4bbef..6455424129 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -242,7 +242,8 @@ CSRC = check.c \ # C++ sources that can be compiled in ARM or THUMB mode depending on the global # setting. -CPPSRC = $(ALLCPPSRC) \ +CPPSRC = \ + $(ALLCPPSRC) \ $(BOARDCPPSRC) \ $(DEV_SRC_CPP) \ $(HW_LAYER_DRIVERS_CORE_CPP) \ @@ -276,10 +277,13 @@ TCPPSRC = ASMXSRC = $(ALLXASMSRC) \ $(RUSEFIASM) +# +# WARNING! order of variables is important here - for instance cypress own folders should go before default folders +# INCDIR = \ $(PCH_DIR) \ - $(ALLINC) \ $(BOARDINC) \ + $(ALLINC) \ $(TESTINC) \ $(BOOTLOADERINC) \ $(CHIBIOS)/os/various \