2023-07-17 20:11:58 +08:00
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = Glob('src/*.c')
|
|
|
|
list = os.listdir(cwd + "/src")
|
|
|
|
if rtconfig.ARCH in list:
|
|
|
|
if os.path.exists(cwd + "/src/" + rtconfig.ARCH + "/" + rtconfig.CPU):
|
|
|
|
src += Glob("src/" + rtconfig.ARCH + "/" + rtconfig.CPU + "/*.c")
|
|
|
|
else:
|
|
|
|
src += Glob("src/" + rtconfig.ARCH + "/*.c")
|
|
|
|
CPPPATH = [cwd, cwd + "/inc"]
|
|
|
|
|
2023-07-20 14:17:45 +08:00
|
|
|
group = DefineGroup('ktime', src, depend=['RT_USING_KTIME'], CPPPATH=CPPPATH)
|
2023-07-17 20:11:58 +08:00
|
|
|
|
|
|
|
Return('group')
|