提交 c692e194 编写于 作者: S SummerGift

[bsp][stm32] optimize board/SConscript code

上级 6ef13c82
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册