merge no-family example build

specify FAMILY_SUBMODULES for all boards
This commit is contained in:
hathach
2021-03-04 22:50:45 +07:00
parent 1b6bf796e1
commit b846ded487
33 changed files with 101 additions and 53 deletions

View File

@@ -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