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.
17 lines
330 B
17 lines
330 B
|
2 months ago
|
# RT-Thread building script for component
|
||
|
|
|
||
|
|
from building import *
|
||
|
|
|
||
|
|
Import('rtconfig')
|
||
|
|
|
||
|
|
cwd = GetCurrentDir()
|
||
|
|
src = Glob('*.c')
|
||
|
|
CPPPATH = [cwd]
|
||
|
|
|
||
|
|
if rtconfig.PLATFORM in ['gcc', 'armclang', 'llvm-arm']:
|
||
|
|
src += Glob('*context_gcc.S')
|
||
|
|
|
||
|
|
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
|
||
|
|
Return('group')
|