diff options
| author | GuEe-GUI <[email protected]> | 2025-12-13 01:49:08 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-16 12:41:02 +0800 |
| commit | 32bdc73a11094fc148d7ba0313e84d835d5588bc (patch) | |
| tree | 23a5c7489e9443cda7f3aae4ed6004e5e0b49be8 /components/drivers | |
| parent | b80e02765b2104cf2105c83a1f9b3dcdf010b3b8 (diff) | |
[dm][serial] make DM Kconfig import
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/serial/Kconfig | 6 | ||||
| -rw-r--r-- | components/drivers/serial/device/Kconfig | 1 | ||||
| -rw-r--r-- | components/drivers/serial/device/SConscript | 19 |
3 files changed, 25 insertions, 1 deletions
diff --git a/components/drivers/serial/Kconfig b/components/drivers/serial/Kconfig index b031c68b6c..95b375c3e6 100644 --- a/components/drivers/serial/Kconfig +++ b/components/drivers/serial/Kconfig @@ -1,5 +1,5 @@ menuconfig RT_USING_SERIAL - bool "USING Serial device drivers" + bool "Using Serial device drivers" select RT_USING_DEVICE_IPC select RT_USING_DEVICE default y @@ -36,3 +36,7 @@ menuconfig RT_USING_SERIAL bool "Using serial bypass" default n endif + +if RT_USING_DM && RT_USING_SERIAL + rsource "device/Kconfig" +endif diff --git a/components/drivers/serial/device/Kconfig b/components/drivers/serial/device/Kconfig new file mode 100644 index 0000000000..aaa4c2b7bf --- /dev/null +++ b/components/drivers/serial/device/Kconfig @@ -0,0 +1 @@ +osource "$(SOC_DM_SERIAL_DIR)/Kconfig" diff --git a/components/drivers/serial/device/SConscript b/components/drivers/serial/device/SConscript new file mode 100644 index 0000000000..31a72472aa --- /dev/null +++ b/components/drivers/serial/device/SConscript @@ -0,0 +1,19 @@ +from building import * + +objs = [] + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd + '/../../include'] + +src = [] + +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') |
