update all stm32 to use new enhance make
This commit is contained in:
@@ -6,6 +6,7 @@ ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
CPU_CORE ?= cortex-m0
|
||||
|
||||
# --------------
|
||||
# Compiler Flags
|
||||
@@ -17,19 +18,11 @@ CFLAGS += \
|
||||
# GCC Flags
|
||||
GCC_CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
-mabi=aapcs \
|
||||
-mcpu=cortex-m0 \
|
||||
-mfloat-abi=soft \
|
||||
-nostdlib -nostartfiles \
|
||||
|
||||
# suppress warning caused by vendor mcu driver
|
||||
GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
|
||||
|
||||
# IAR Flags
|
||||
IAR_CFLAGS += --cpu cortex-m0
|
||||
IAR_ASFLAGS += --cpu cortex-m0
|
||||
|
||||
# ------------------------
|
||||
# All source paths should be relative to the top level.
|
||||
# ------------------------
|
||||
@@ -51,6 +44,3 @@ INC += \
|
||||
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
|
||||
$(TOP)/$(ST_CMSIS)/Include \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
Reference in New Issue
Block a user