Files
luban-lite-t3e-pro/kernel/common/osal/SConscript
2025-09-30 11:56:06 +08:00

22 lines
596 B
Python

Import('AIC_ROOT')
Import('PRJ_KERNEL')
Import('rtconfig')
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd + '/../include/osal', ]
SRC_NAME = 'aicos_memcpy.S'
asm_src = Glob(SRC_NAME)
PATH = AIC_ROOT + '/kernel/common/osal/'
lib_name = 'aic-mem_' + rtconfig.CPUNAME + '.a'
if os.path.exists(PATH + SRC_NAME):
DefineGroup(PATH + lib_name, asm_src, depend = [''], LIBRARY='')
group = DefineGroup('aic_osal', src, depend = [''], CPPPATH = CPPPATH, LIBS =
['aic-mem_' + rtconfig.CPUNAME], LIBPATH = [PATH])
Return('group')