|
@@ -2,6 +2,8 @@ import os
|
|
import rtconfig
|
|
import rtconfig
|
|
from building import *
|
|
from building import *
|
|
|
|
|
|
|
|
+Import('SDK_LIB')
|
|
|
|
+
|
|
cwd = GetCurrentDir()
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
# add general drivers
|
|
# add general drivers
|
|
@@ -11,10 +13,7 @@ src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
|
|
path = [cwd]
|
|
path = [cwd]
|
|
path += [cwd + '/CubeMX_Config/Inc']
|
|
path += [cwd + '/CubeMX_Config/Inc']
|
|
|
|
|
|
-if os.path.exists(cwd + '/../libraries'):
|
|
|
|
- startup_path_prefix = cwd + '/../libraries'
|
|
|
|
-else:
|
|
|
|
- startup_path_prefix = cwd + '/../../libraries'
|
|
|
|
|
|
+startup_path_prefix = SDK_LIB
|
|
|
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
|
|
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
|