[bsp][stm32] optimize board/SConscript code
This commit is contained in:
parent
6ef13c82aa
commit
c692e194a6
|
@ -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']
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue