mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
26 lines
625 B
Python
26 lines
625 B
Python
# RT-Thread building script for component
|
|
|
|
import os
|
|
import shutil
|
|
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c') + Glob('*.cpp')
|
|
CPPPATH = [cwd]
|
|
CPPDEFINES = ['LFS_CONFIG=lfs_config.h']
|
|
|
|
#delate non-used files
|
|
try:
|
|
shutil.rmtree(os.path.join(cwd,'.github'))
|
|
shutil.rmtree(os.path.join(cwd,'bd'))
|
|
shutil.rmtree(os.path.join(cwd,'scripts'))
|
|
shutil.rmtree(os.path.join(cwd,'tests'))
|
|
os.remove(os.path.join(cwd,'Makefile'))
|
|
except:
|
|
pass
|
|
|
|
group = DefineGroup('littlefs', src, depend = ['LPKG_USING_LITTLEFS', 'RT_USING_DFS'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
Return('group')
|