diff options
| author | zms123456 <[email protected]> | 2023-12-24 19:53:12 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-24 19:53:12 +0800 |
| commit | e1fdc13288eb110d8280f68594c2d87e14446437 (patch) | |
| tree | ad4511fd2a660e0107d8da827c5fb0057bfb3545 /components/drivers/clk/SConscript | |
| parent | 4a7f41531f57ee0e2d9d733294664495bfa768f0 (diff) | |
[component][drivers]add clk framework (#8213)
Diffstat (limited to 'components/drivers/clk/SConscript')
| -rw-r--r-- | components/drivers/clk/SConscript | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/drivers/clk/SConscript b/components/drivers/clk/SConscript new file mode 100644 index 0000000000..af6ed4dbeb --- /dev/null +++ b/components/drivers/clk/SConscript @@ -0,0 +1,26 @@ +from building import * + +group = [] +objs = [] + +if not GetDepend(['RT_USING_CLK']): + Return('group') + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd + '/../include'] + +src = ['clk.c'] + +if GetDepend(['RT_USING_OFW']): + src += ['clk-fixed-rate.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') |
