realtek_ameba/sdk-ameba-v4.0b_without_NDA_GCC_V1.0.0/component/os/SConscript
2018-06-01 12:24:02 +08:00

24 lines
621 B
Python

import rtconfig
Import('RTT_ROOT')
from building import *
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Split('''
os_dep/osdep_service.c
''')
path = [cwd + '/os_dep/include',
cwd + '/freertos',
cwd + '/freertos/freertos_v8.1.2/Source/include']
if rtconfig.CROSS_TOOL == 'gcc':
path += [cwd + '/freertos/freertos_v8.1.2/Source/portable/GCC/ARM_CM4F']
elif rtconfig.CROSS_TOOL == 'iar':
path += [cwd + '/freertos/freertos_v8.1.2/Source/portable/IAR/ARM_CM4F']
group = DefineGroup('os_dep', src, depend = [''], CPPPATH = path)
Return('group')