diff options
| author | GuEe-GUI <[email protected]> | 2024-10-30 10:44:16 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-11-20 16:11:10 +0800 |
| commit | c424cb8186950dcc0176ef9c584562cad674a636 (patch) | |
| tree | f00ce2f4b16270af8dd2dc9c264b5a9fe1a4cddb /components/drivers/block/SConscript | |
| parent | 10cac76d3bfc86fda251013c5573c146836762e7 (diff) | |
[DM/FEATURE] Support simple block layer
1. Disk and blk device management.
2. Support partitions probe auto.
3. Support DFS and user mode fops, ioctl.
4. Add a cmd for blk info.
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/block/SConscript')
| -rw-r--r-- | components/drivers/block/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/drivers/block/SConscript b/components/drivers/block/SConscript new file mode 100644 index 0000000000..4aff1a82c9 --- /dev/null +++ b/components/drivers/block/SConscript @@ -0,0 +1,23 @@ +from building import * + +group = [] +objs = [] + +if not GetDepend(['RT_USING_BLK']): + Return('group') + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd + '/../include'] + +src = ['blk.c', 'blk_dev.c', 'blk_dfs.c', 'blk_partition.c'] + +group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) + +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')) +objs = objs + group + +Return('objs') |
