rename GCC_CFLAGS to CFLAGS_GCC, GCC_SRC_S to SRC_S_GCC etc ..
This commit is contained in:
@@ -2,12 +2,12 @@ CFLAGS += \
|
||||
-DSTM32L412xx \
|
||||
|
||||
# GCC
|
||||
GCC_SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l412xx.s
|
||||
GCC_LD_FILE = $(BOARD_PATH)/STM32L412KBUx_FLASH.ld
|
||||
SRC_S_GCC += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l412xx.s
|
||||
LD_FILE_GCC = $(BOARD_PATH)/STM32L412KBUx_FLASH.ld
|
||||
|
||||
# IAR
|
||||
IAR_SRC_S += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l412xx.s
|
||||
IAR_LD_FILE = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l412xx_flash.icf
|
||||
SRC_S_IAR += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l412xx.s
|
||||
LD_FILE_IAR = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l412xx_flash.icf
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32l412kb
|
||||
|
@@ -2,12 +2,12 @@ CFLAGS += \
|
||||
-DSTM32L476xx \
|
||||
|
||||
# GCC
|
||||
GCC_SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l476xx.s
|
||||
GCC_LD_FILE = $(BOARD_PATH)/STM32L476VGTx_FLASH.ld
|
||||
SRC_S_GCC += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l476xx.s
|
||||
LD_FILE_GCC = $(BOARD_PATH)/STM32L476VGTx_FLASH.ld
|
||||
|
||||
# IAR
|
||||
IAR_SRC_S += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l476xx.s
|
||||
IAR_LD_FILE = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l476xx_flash.icf
|
||||
SRC_S_IAR += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l476xx.s
|
||||
LD_FILE_IAR = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l476xx_flash.icf
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32l476vg
|
||||
|
@@ -2,12 +2,12 @@ CFLAGS += \
|
||||
-DSTM32L4P5xx \
|
||||
|
||||
# GCC
|
||||
GCC_SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l4p5xx.s
|
||||
GCC_LD_FILE = $(BOARD_PATH)/STM32L4P5ZGTX_FLASH.ld
|
||||
SRC_S_GCC += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l4p5xx.s
|
||||
LD_FILE_GCC = $(BOARD_PATH)/STM32L4P5ZGTX_FLASH.ld
|
||||
|
||||
# IAR
|
||||
IAR_SRC_S += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l4p5xx.s
|
||||
IAR_LD_FILE = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l4p5xx_flash.icf
|
||||
SRC_S_IAR += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l4p5xx.s
|
||||
LD_FILE_IAR = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l4p5xx_flash.icf
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32l4p5zg
|
||||
|
@@ -3,12 +3,12 @@ CFLAGS += \
|
||||
-DSTM32L4R5xx \
|
||||
|
||||
# GCC
|
||||
GCC_SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l4r5xx.s
|
||||
GCC_LD_FILE = $(BOARD_PATH)/STM32L4RXxI_FLASH.ld
|
||||
SRC_S_GCC += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32l4r5xx.s
|
||||
LD_FILE_GCC = $(BOARD_PATH)/STM32L4RXxI_FLASH.ld
|
||||
|
||||
# IAR
|
||||
IAR_SRC_S += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l4r5xx.s
|
||||
IAR_LD_FILE = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l4r5xx_flash.icf
|
||||
SRC_S_IAR += $(ST_CMSIS)/Source/Templates/iar/startup_stm32l4r5xx.s
|
||||
LD_FILE_IAR = $(ST_CMSIS)/Source/Templates/iar/linker/stm32l4r5xx_flash.icf
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32l4r5zi
|
||||
|
@@ -14,12 +14,12 @@ CFLAGS += \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_STM32L4
|
||||
|
||||
# GCC Flags
|
||||
GCC_CFLAGS += \
|
||||
CFLAGS_GCC += \
|
||||
-flto \
|
||||
-nostdlib -nostartfiles
|
||||
|
||||
# suppress warning caused by vendor mcu driver
|
||||
GCC_CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align
|
||||
CFLAGS_GCC += -Wno-error=maybe-uninitialized -Wno-error=cast-align
|
||||
|
||||
# -----------------
|
||||
# Sources & Include
|
||||
|
Reference in New Issue
Block a user