importrtconfigfrombuildingimport*cwd=GetCurrentDir()# add the general drivers.src=Glob('board.c')src+=Glob('CubeMX_Config/Src/stm32f7xx_hal_msp.c')path=[cwd]path+=[cwd+'/CubeMX_Config/Inc']ifrtconfig.CROSS_TOOL=='gcc':src+=[cwd+'/../../libraries/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']elifrtconfig.CROSS_TOOL=='keil':src+=[cwd+'/../../libraries/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']elifrtconfig.CROSS_TOOL=='iar':src+=[cwd+'/../../libraries/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f767xx.s']