summaryrefslogtreecommitdiff
path: root/hw/bsp/stm32f207nucleo
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-03-04 22:50:45 +0700
committerhathach <[email protected]>2021-03-04 22:50:45 +0700
commitb846ded487c29e5ca5698f2ab7cb237a21eeb85b (patch)
treef6d432a589b2d1c033204efc42f2d350860a3af3 /hw/bsp/stm32f207nucleo
parent1b6bf796e1083083b8fc8a4a908f73c099fc6097 (diff)
merge no-family example build
specify FAMILY_SUBMODULES for all boards
Diffstat (limited to 'hw/bsp/stm32f207nucleo')
-rw-r--r--hw/bsp/stm32f207nucleo/board.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/bsp/stm32f207nucleo/board.mk b/hw/bsp/stm32f207nucleo/board.mk
index 025c2d7b7..5ddddb15d 100644
--- a/hw/bsp/stm32f207nucleo/board.mk
+++ b/hw/bsp/stm32f207nucleo/board.mk
@@ -1,3 +1,9 @@
+ST_FAMILY = f2
+FAMILY_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
+
+ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
+ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
+
CFLAGS += \
-flto \
-mthumb \
@@ -11,11 +17,6 @@ CFLAGS += \
# mcu driver cause following warnings
CFLAGS += -Wno-error=sign-compare
-ST_FAMILY = f2
-ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
-ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
-
-
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/STM32F207ZGTx_FLASH.ld