diff --git a/build/product-id.mk b/build/product-id.mk index c3fb8283f4..c59bd3174e 100644 --- a/build/product-id.mk +++ b/build/product-id.mk @@ -62,6 +62,9 @@ endif STM32_DEVICE_LC = $(shell echo $(STM32_DEVICE) | tr A-Z a-z) ifdef STM32_DEVICE +# needed for conditional compilation of syshealth_hal.h +CFLAGS += -DSTM32_DEVICE +# needed for conditional compilation of some stm32 specific files CFLAGS += -D$(STM32_DEVICE) endif