mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-04 01:54:34 +08:00
17 lines
327 B
Python
17 lines
327 B
Python
|
# 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('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|