diff options
| author | Bernard Xiong <[email protected]> | 2023-04-04 15:02:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-04 15:02:56 +0800 |
| commit | 23955edf53422c20127ef0138b889016a1ba2341 (patch) | |
| tree | c9035207dc66d1df690308c7cac9058fc6fc09b5 /components/dfs/SConscript | |
| parent | accab17fa5eafc800c4ba464a0f6fcc1d1e008eb (diff) | |
[DFS] add Kconfig for dfs-v2.0 (#7156)
* [DFS] add Kconfig for dfs-v2.0
* [DFS] Optimize the SConscript.
* [dfs] move old dfs to dfs/dfs_v1
Diffstat (limited to 'components/dfs/SConscript')
| -rw-r--r-- | components/dfs/SConscript | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript index 18b4721a7b..4c815c49b8 100644 --- a/components/dfs/SConscript +++ b/components/dfs/SConscript @@ -1,26 +1,15 @@ -from building import * +# RT-Thread building script for bridge + import os +from building import * -# The set of source files associated with this SConscript file. -src = Split(''' -src/dfs.c -src/dfs_file.c -src/dfs_fs.c -''') cwd = GetCurrentDir() -CPPPATH = [cwd + "/include"] - -if GetDepend('DFS_USING_POSIX'): - src += ['src/dfs_posix.c'] - -group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS'], CPPPATH = CPPPATH) - -if GetDepend('RT_USING_DFS'): - # search in the file system implementation - list = os.listdir(cwd) +objs = [] +list = os.listdir(cwd) - for item in list: - if os.path.isfile(os.path.join(cwd, item, 'SConscript')): - group = group + SConscript(os.path.join(item, 'SConscript')) +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) -Return('group') +Return('objs') |
