31 lines
810 B
Python
31 lines
810 B
Python
|
import os
|
||
|
import rtconfig
|
||
|
from building import *
|
||
|
|
||
|
Import('SDK_LIB')
|
||
|
|
||
|
objs = []
|
||
|
cwd = GetCurrentDir()
|
||
|
list = os.listdir(cwd)
|
||
|
|
||
|
# add general drivers
|
||
|
src = Split('''
|
||
|
board.c
|
||
|
''')
|
||
|
|
||
|
path = [cwd]
|
||
|
|
||
|
startup_path_prefix = SDK_LIB
|
||
|
|
||
|
if rtconfig.PLATFORM == 'gcc':
|
||
|
src += [startup_path_prefix +
|
||
|
'/IFX_PSOC6_HAL/TARGET_CY8CKIT-062S2-43012/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_02_cm4.S']
|
||
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||
|
src += [startup_path_prefix +
|
||
|
'/IFX_PSOC6_HAL/TARGET_CY8CKIT-062S2-43012/COMPONENT_CM4/TOOLCHAIN_ARM/startup_psoc6_02_cm4.S']
|
||
|
|
||
|
CPPDEFINES = ['IFX_PSOC6_43012', 'CY_USING_HAL', 'COMPONENT_CAT1A', 'COMPONENT_CAT1', 'COMPONENT_BSP_DESIGN_MODUS']
|
||
|
group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path, CPPDEFINES=CPPDEFINES)
|
||
|
|
||
|
Return('group')
|