diff options
| author | GuEe-GUI <[email protected]> | 2026-07-22 21:45:41 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-08-06 09:43:10 +0800 |
| commit | fae3992d1496b2eae09721440033b21220cb16c6 (patch) | |
| tree | f846056f5c441161e560394fca314bc0c5fded25 /components/drivers/ethernet/SConscript | |
| parent | 71fd997662993ababc5f0861422fe09d6647018e (diff) | |
[dm][ethernet] Add ethernet for DM
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/ethernet/SConscript')
| -rw-r--r-- | components/drivers/ethernet/SConscript | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/components/drivers/ethernet/SConscript b/components/drivers/ethernet/SConscript new file mode 100644 index 0000000000..f292627b5f --- /dev/null +++ b/components/drivers/ethernet/SConscript @@ -0,0 +1,21 @@ +from building import * + +group = [] + +if not GetDepend(['RT_USING_ETHERNET']): + Return('group') + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd + '/../include'] + +src = ['ethernet_dm.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')): + group = group + SConscript(os.path.join(d, 'SConscript')) + +Return('group') |
