[update] fix stm32h750-artpi-h750 工程执行 scons --dist 后无法编译
This commit is contained in:
parent
24f2ce62ba
commit
c7d52a4677
|
@ -2,6 +2,8 @@ import os
|
||||||
import rtconfig
|
import rtconfig
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
|
Import('SDK_LIB')
|
||||||
|
|
||||||
objs = []
|
objs = []
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
|
@ -43,12 +45,14 @@ path = [cwd]
|
||||||
path += [cwd + '/CubeMX_Config/Core/Inc']
|
path += [cwd + '/CubeMX_Config/Core/Inc']
|
||||||
path += [cwd + '/port']
|
path += [cwd + '/port']
|
||||||
|
|
||||||
|
startup_path_prefix = SDK_LIB
|
||||||
|
|
||||||
if rtconfig.CROSS_TOOL == 'gcc':
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s']
|
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s']
|
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h750xx.s']
|
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h750xx.s']
|
||||||
|
|
||||||
# STM32H743xx || STM32H750xx || STM32F753xx
|
# STM32H743xx || STM32H750xx || STM32F753xx
|
||||||
# You can select chips from the list above
|
# You can select chips from the list above
|
||||||
|
|
Loading…
Reference in New Issue