From c7d52a4677221d99e9c73655d82f89ef35b91702 Mon Sep 17 00:00:00 2001 From: liukangcc Date: Mon, 11 Oct 2021 17:24:29 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20fix=20stm32h750-artpi-h750=20?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E6=89=A7=E8=A1=8C=20scons=20--dist=20?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32h750-artpi-h750/board/SConscript | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bsp/stm32/stm32h750-artpi-h750/board/SConscript b/bsp/stm32/stm32h750-artpi-h750/board/SConscript index e3e5ebd62b..a3800f7b3f 100644 --- a/bsp/stm32/stm32h750-artpi-h750/board/SConscript +++ b/bsp/stm32/stm32h750-artpi-h750/board/SConscript @@ -2,6 +2,8 @@ import os import rtconfig from building import * +Import('SDK_LIB') + objs = [] cwd = GetCurrentDir() list = os.listdir(cwd) @@ -43,12 +45,14 @@ path = [cwd] path += [cwd + '/CubeMX_Config/Core/Inc'] path += [cwd + '/port'] +startup_path_prefix = SDK_LIB + 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': - 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': - 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 # You can select chips from the list above