mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-16 17:18:56 +00:00
24 lines
580 B
Python
24 lines
580 B
Python
# RT-Thread building script for component
|
|
|
|
import os
|
|
import shutil
|
|
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
CPPPATH = []
|
|
|
|
CPPPATH += [cwd + '/common/inc']
|
|
|
|
if GetDepend('LPKG_USING_LEVELX') and GetDepend('AIC_SPINOR_DRV'):
|
|
src += Glob('common/src/*lx_nor*.c') + Glob('*.cpp')
|
|
src += Glob('aic-levelx/*nor*.c') + Glob('*.cpp')
|
|
|
|
if GetDepend('LPKG_USING_LEVELX') and GetDepend('AIC_SPINAND_DRV'):
|
|
src += Glob('common/src/*lx_nand*.c') + Glob('*.cpp')
|
|
|
|
group = DefineGroup('levelX', src, depend = ['LPKG_USING_LEVELX'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|