Skip to content

Commit 04dd187

Browse files
committed
[sdio][dm] import Kconfig for DM
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 9370f81 commit 04dd187

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

components/drivers/sdio/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
config RT_USING_SDIO
1+
menuconfig RT_USING_SDIO
22
bool "Using SD/MMC device drivers"
33
select RT_USING_BLK
44
default n
@@ -30,3 +30,7 @@ config RT_USING_SDIO
3030
bool "Using sdhci for sd/mmc drivers"
3131
default n
3232
endif
33+
34+
if RT_USING_DM && RT_USING_SDIO
35+
rsource "host/Kconfig"
36+
endif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
osource "$(SOC_DM_SDIO_DIR)/Kconfig"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from building import *
2+
3+
group = []
4+
5+
if not GetDepend(['RT_USING_SDIO']) and not GetDepend(['RT_USING_DM']):
6+
Return('group')
7+
8+
cwd = GetCurrentDir()
9+
CPPPATH = [cwd + '/../../include']
10+
11+
src = []
12+
13+
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
14+
15+
Return('group')

0 commit comments

Comments
 (0)