[bsp][stm32] optimize board/SConscript code

This commit is contained in:
SummerGift 2018-12-13 15:13:30 +08:00
parent 6ef13c82aa
commit c692e194a6
8 changed files with 32 additions and 16 deletions

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f1xx_hal_msp.c
''')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f4xx_hal_msp.c
''')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32l4xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32l4xx_hal_msp.c
''')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f1xx_hal_msp.c
''')
if GetDepend(['BSP_USING_SPI_FLASH']):
src += Glob('ports/spi_flash_init.c')

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f1xx_hal_msp.c
''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/w5500_device.c')

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f4xx_hal_msp.c
''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/phy_reset.c')

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f4xx_hal_msp.c
''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/phy_reset.c')

View File

@ -7,8 +7,10 @@ Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
src = Split('''
board.c
CubeMX_Config/Src/stm32f4xx_hal_msp.c
''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/phy_reset.c')