2020-10-16 11:38:52 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c') + Glob('*.cpp')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2020-10-16 11:38:52 +08:00
|
|
|
src += Glob('*_init.S')
|
|
|
|
src += Glob('*_gcc.S')
|
|
|
|
|
2020-12-19 16:49:11 +08:00
|
|
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
2020-10-16 11:38:52 +08:00
|
|
|
|
|
|
|
Return('group')
|