summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.toolchain3
-rw-r--r--cts/build.mk2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index d611c1bc94..0933c5f481 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -35,8 +35,7 @@ CFLAGS_DEBUG= -g
CFLAGS_INCLUDE=$(foreach i,$(includes),-I$(i) ) -I.
CFLAGS_TEST=$(if $(TEST_BUILD),-DTEST_BUILD \
-DTEST_TASKFILE=$(PROJECT).tasklist,) \
- $(if $(CTS_MODULE), -DCTS_MODULE=$(CTS_MODULE) \
- -DCTS_TASKFILE=cts.tasklist) \
+ $(if $(CTS_MODULE), $(CFLAGS_CTS)) \
$(if $(EMU_BUILD),-DEMU_BUILD) \
$(if $($(PROJECT)-scale),-DTEST_TIME_SCALE=$($(PROJECT)-scale)) \
-DTEST_$(PROJECT) -DTEST_$(UC_PROJECT)
diff --git a/cts/build.mk b/cts/build.mk
index 6766a9fb4c..59fa85547c 100644
--- a/cts/build.mk
+++ b/cts/build.mk
@@ -3,6 +3,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+CFLAGS_CTS=-DCTS_MODULE -DCTS_TASKFILE=cts.tasklist
+
ifeq ($(BOARD),stm32l476g-eval)
cts-y+=$(CTS_MODULE)/th.o
cts-y+=common/th_common.o