mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[dm][pin][pinctrl] add new driver
1. ARM PL061 GPIO 2. Single Pinctrl Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from building import *
|
||||
|
||||
group = []
|
||||
objs = []
|
||||
|
||||
if not GetDepend(['RT_USING_PINCTRL']):
|
||||
Return('group')
|
||||
@@ -12,12 +11,9 @@ CPPPATH = [cwd + '/../include']
|
||||
|
||||
src = ['pinctrl.c']
|
||||
|
||||
if GetDepend(['RT_PINCTRL_SINGLE']):
|
||||
src += ['pinctrl-single.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')
|
||||
Return('group')
|
||||
|
||||
Reference in New Issue
Block a user