summaryrefslogtreecommitdiff
path: root/src/arch/stm32f746zg-nucleo/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/stm32f746zg-nucleo/Makefile.inc')
-rw-r--r--src/arch/stm32f746zg-nucleo/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/stm32f746zg-nucleo/Makefile.inc b/src/arch/stm32f746zg-nucleo/Makefile.inc
index fada19d..5ea8bb5 100644
--- a/src/arch/stm32f746zg-nucleo/Makefile.inc
+++ b/src/arch/stm32f746zg-nucleo/Makefile.inc
@@ -50,6 +50,9 @@ endif
ifdef CONFIG_arch_stm32f746zg_nucleo_driver_counter
CXX_TARGETS += src/arch/stm32f746zg-nucleo/driver/counter.cc
+ ifneq (${app}, )
+ COMMON_FLAGS += -DCONFIG_arch_stm32f746zg_nucleo_driver_counter
+ endif
endif
ifdef CONFIG_arch_stm32f746zg_nucleo_driver_i2c