Synwit MCU 采用新的 BSP 框架,将 BSP 与 libraries 分离 (#8432)
This commit is contained in:
parent
7b4592c2d1
commit
6360253c12
|
@ -50,8 +50,8 @@ jobs:
|
||||||
- "at91/at91sam9260"
|
- "at91/at91sam9260"
|
||||||
- "wch/arm/ch32f103c8-core"
|
- "wch/arm/ch32f103c8-core"
|
||||||
- "wch/arm/ch32f203r-evt"
|
- "wch/arm/ch32f203r-evt"
|
||||||
- "synwit/swm320"
|
- "synwit/swm320-mini"
|
||||||
- "synwit/swm341"
|
- "synwit/swm341-mini"
|
||||||
- "beaglebone"
|
- "beaglebone"
|
||||||
- "zynqmp-r5-axu4ev"
|
- "zynqmp-r5-axu4ev"
|
||||||
- "at32/at32f402-start"
|
- "at32/at32f402-start"
|
||||||
|
|
|
@ -238,8 +238,8 @@ jobs:
|
||||||
- {RTT_BSP_NAME: "smartfusion2", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "smartfusion2"}
|
- {RTT_BSP_NAME: "smartfusion2", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "smartfusion2"}
|
||||||
- {RTT_BSP_NAME: "sparkfun-redv", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "sparkfun-redv"}
|
- {RTT_BSP_NAME: "sparkfun-redv", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "sparkfun-redv"}
|
||||||
#- {RTT_BSP_NAME: "synopsys_boards", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synopsys/boards"} #不支持的toolchain
|
#- {RTT_BSP_NAME: "synopsys_boards", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synopsys/boards"} #不支持的toolchain
|
||||||
- {RTT_BSP_NAME: "synwit_swm320", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm320"}
|
- {RTT_BSP_NAME: "synwit_swm320-mini", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm320-mini"}
|
||||||
- {RTT_BSP_NAME: "synwit_swm341", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm341"}
|
- {RTT_BSP_NAME: "synwit_swm341-mini", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm341-mini"}
|
||||||
#- {RTT_BSP_NAME: "tae32f5300", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "tae32f5300"} #musl toolchain 未支持
|
#- {RTT_BSP_NAME: "tae32f5300", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "tae32f5300"} #musl toolchain 未支持
|
||||||
#- {RTT_BSP_NAME: "taihu", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "taihu"} #powerpc-eabi-gcc 未支持
|
#- {RTT_BSP_NAME: "taihu", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "taihu"} #powerpc-eabi-gcc 未支持
|
||||||
#- {RTT_BSP_NAME: "thead-smart", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "thead-smart"} #menuconfig有问题
|
#- {RTT_BSP_NAME: "thead-smart", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "thead-smart"} #menuconfig有问题
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
from building import *
|
from building import *
|
||||||
import rtconfig
|
import rtconfig
|
||||||
cwd = GetCurrentDir()
|
|
||||||
src = Glob('CMSIS/DeviceSupport/*.c')
|
|
||||||
CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM320_StdPeriph_Driver']
|
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
|
||||||
|
src = Glob('CMSIS/DeviceSupport/*.c')
|
||||||
src += Glob('SWM320_StdPeriph_Driver/*.c')
|
src += Glob('SWM320_StdPeriph_Driver/*.c')
|
||||||
|
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
|
@ -12,6 +12,12 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['CMSIS/DeviceSupport/startup/arm/startup_SWM320.s']
|
src += ['CMSIS/DeviceSupport/startup/arm/startup_SWM320.s']
|
||||||
elif rtconfig.PLATFORM in ['iccarm']:
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['CMSIS/DeviceSupport/startup/iar/startup_SWM320.s']
|
src += ['CMSIS/DeviceSupport/startup/iar/startup_SWM320.s']
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
|
|
||||||
|
inc = [cwd + '/CMSIS/CoreSupport',
|
||||||
|
cwd + '/CMSIS/DeviceSupport',
|
||||||
|
cwd + '/SWM320_StdPeriph_Driver'
|
||||||
|
]
|
||||||
|
|
||||||
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = inc)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
|
@ -1,12 +1,7 @@
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
|
src = []
|
||||||
CPPPATH = [cwd]
|
|
||||||
|
|
||||||
src = Split('''
|
|
||||||
board.c
|
|
||||||
''')
|
|
||||||
|
|
||||||
if GetDepend(['RT_USING_SERIAL']):
|
if GetDepend(['RT_USING_SERIAL']):
|
||||||
src += ['drv_uart.c']
|
src += ['drv_uart.c']
|
||||||
|
@ -47,6 +42,6 @@ if GetDepend(['BSP_USING_EXT_SRAM']):
|
||||||
if GetDepend(['BSP_USING_NOR_FLASH']):
|
if GetDepend(['BSP_USING_NOR_FLASH']):
|
||||||
src += ['drv_nor_flash.c']
|
src += ['drv_nor_flash.c']
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = [cwd])
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue