You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
10 months ago
|
Import('RTT_ROOT')
|
||
|
Import('rtconfig')
|
||
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
src = []
|
||
|
group = []
|
||
|
CPPPATH = []
|
||
|
|
||
|
if rtconfig.PLATFORM in ['iccarm']:
|
||
|
print("\nThe current project does not support IAR build\n")
|
||
|
Return('group')
|
||
|
elif rtconfig.PLATFORM in ['gcc', 'armclang']:
|
||
|
src += [cwd + '/TARGET_RTT-062S2/cybsp.c']
|
||
|
src += [cwd + '/TARGET_RTT-062S2/COMPONENT_CM4/system_psoc6_cm4.c']
|
||
|
src += Glob(cwd + '/TARGET_RTT-062S2/config/GeneratedSource/*.c')
|
||
|
|
||
|
CPPPATH = [ cwd + '/TARGET_RTT-062S2',
|
||
|
cwd + '/TARGET_RTT-062S2/config/GeneratedSource',
|
||
|
cwd + '/TARGET_RTT-062S2/config',
|
||
|
cwd + '/TARGET_RTT-062S2/bluetooth'
|
||
|
]
|
||
|
if GetDepend(['BSP_USING_CYW43012_BT']):
|
||
|
src += Glob(cwd + '/TARGET_RTT-062S2/bluetooth/*.c')
|
||
|
|
||
|
if rtconfig.PLATFORM in ['gcc']:
|
||
|
src += [cwd + '/TARGET_RTT-062S2/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_02_cm4.S']
|
||
|
elif rtconfig.PLATFORM in ['armclang']:
|
||
|
src += [cwd + '/TARGET_RTT-062S2/COMPONENT_CM4/TOOLCHAIN_ARM/startup_psoc6_02_cm4.S']
|
||
|
|
||
|
group = DefineGroup('libs', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
Return('group')
|