mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 10:58:54 +00:00
22 lines
596 B
Python
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')
|