Skip to content

Commit 37818aa

Browse files
GuEe-GUIRbb666
authored andcommitted
[WDT] Update for DM build
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 1d75169 commit 37818aa

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

components/drivers/watchdog/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
config RT_USING_WDT
1+
menuconfig RT_USING_WDT
22
bool "Using Watch Dog device drivers"
33
default n
4+
5+
if RT_USING_DM && RT_USING_WDT
6+
osource "$(SOC_DM_WDT_DIR)/Kconfig"
7+
endif
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
from building import *
22

3-
cwd = GetCurrentDir()
4-
src = Glob('*.c')
3+
group = []
4+
5+
if not GetDepend(['RT_USING_WDT']):
6+
Return('group')
7+
8+
cwd = GetCurrentDir()
9+
list = os.listdir(cwd)
510
CPPPATH = [cwd + '/../include']
6-
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WDT'], CPPPATH = CPPPATH)
11+
12+
src = ['dev_watchdog.c']
13+
14+
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
715

816
Return('group')

0 commit comments

Comments
 (0)