diff options
| author | guo <[email protected]> | 2023-07-06 16:52:30 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-06 16:52:30 +0800 |
| commit | 78867912c114966d49e003db2ffb3407a5017b46 (patch) | |
| tree | e8b34c99bbf57feb4e1e976993d01ef6f9d3fd13 /components/drivers/ofw/SConscript | |
| parent | c7be260665c9c753b343141968755d47deadd753 (diff) | |
| parent | fa10a99c3ccecd6113d30842a05e1b853cf7d1cb (diff) | |
Merge pull request #7788 from ErikChanHub/master
【dd2.0】Support Open Firmware API
Diffstat (limited to 'components/drivers/ofw/SConscript')
| -rw-r--r-- | components/drivers/ofw/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/components/drivers/ofw/SConscript b/components/drivers/ofw/SConscript new file mode 100644 index 0000000000..d878c0c64a --- /dev/null +++ b/components/drivers/ofw/SConscript @@ -0,0 +1,22 @@ +from building import * + +objs = [] + +if not GetDepend(['RT_USING_OFW']): + Return('objs') + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd, cwd + '/../include'] + +src = Glob('*.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') |
