diff options
| author | bernard <[email protected]> | 2017-10-15 22:44:53 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-15 22:44:53 +0800 |
| commit | 0f5a68a55e2a3c44f1e85029d22de6180ad30390 (patch) | |
| tree | 300fe8aa92ce781200aa807d39ed4c5ed750a1ed /components/dfs/SConscript | |
| parent | 5c7b16d00bdb536a694e6e31a2e0a1c33cb9dcb9 (diff) | |
[dfs] add poll/select
1. Add poll/select APIs;
2. Add wait queue implementation;
3. Remove DFS_STATUS_* code and use errno;
4. Add pipe API;
5. Use a standalone fops in DFS;
Diffstat (limited to 'components/dfs/SConscript')
| -rw-r--r-- | components/dfs/SConscript | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript index e13ed292dc..5c7c8bf6a1 100644 --- a/components/dfs/SConscript +++ b/components/dfs/SConscript @@ -1,16 +1,24 @@ from building import * # The set of source files associated with this SConscript file. -src = Glob('src/*.c') +src = Split(''' +src/dfs.c +src/dfs_file.c +src/dfs_fs.c +src/dfs_posix.c +''') cwd = GetCurrentDir() CPPPATH = [cwd + "/include"] +if GetDepend('RT_USING_DFS_NET'): + src += ['src/poll.c', 'src/select.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) - + for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) |
