Skip to content

Commit 49db23b

Browse files
committed
[dm][serial] make DM Kconfig import
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 2fb53c8 commit 49db23b

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

components/drivers/serial/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
menuconfig RT_USING_SERIAL
2-
bool "USING Serial device drivers"
2+
bool "Using Serial device drivers"
33
select RT_USING_DEVICE_IPC
44
select RT_USING_DEVICE
55
default y
@@ -36,3 +36,7 @@ menuconfig RT_USING_SERIAL
3636
bool "Using serial bypass"
3737
default n
3838
endif
39+
40+
if RT_USING_DM && RT_USING_SERIAL
41+
rsource "device/Kconfig"
42+
endif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
osource "$(SOC_DM_SERIAL_DIR)/Kconfig"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from building import *
2+
3+
objs = []
4+
5+
cwd = GetCurrentDir()
6+
list = os.listdir(cwd)
7+
CPPPATH = [cwd + '/../../include']
8+
9+
src = []
10+
11+
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
12+
13+
for d in list:
14+
path = os.path.join(cwd, d)
15+
if os.path.isfile(os.path.join(path, 'SConscript')):
16+
objs = objs + SConscript(os.path.join(d, 'SConscript'))
17+
objs = objs + group
18+
19+
Return('objs')

0 commit comments

Comments
 (0)