diff options
| author | zms123456 <[email protected]> | 2024-02-29 22:27:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-29 22:27:27 +0800 |
| commit | 97c5edf947b0c1b02ad39fd5bedb1853a9140c2d (patch) | |
| tree | 7208e93c53d55594f4a6f2fe249383577fdc6e44 /components/drivers/pinctrl/SConscript | |
| parent | 195f94ef1dc9ae48de16902e2ff1646ce0cffb57 (diff) | |
[component][drivers]add pinctrl/pin-irqchip (#8383)
Diffstat (limited to 'components/drivers/pinctrl/SConscript')
| -rw-r--r-- | components/drivers/pinctrl/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/drivers/pinctrl/SConscript b/components/drivers/pinctrl/SConscript new file mode 100644 index 0000000000..5ea1b1762e --- /dev/null +++ b/components/drivers/pinctrl/SConscript @@ -0,0 +1,23 @@ +from building import * + +group = [] +objs = [] + +if not GetDepend(['RT_USING_PINCTRL']): + Return('group') + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd + '/../include'] + +src = ['pinctrl.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') |
