summaryrefslogtreecommitdiff
path: root/components/drivers/pm/SConscript
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-10-29 10:27:38 +0800
committerGitHub <[email protected]>2018-10-29 10:27:38 +0800
commit98fc1cb4cf0fd20a79f16b72fd72846c207702b5 (patch)
treeb5821ff709d36cfbf534d85e0da0bf9fe81ea27a /components/drivers/pm/SConscript
parent05b58271b0f089fe2f599da124ecc651bee78d54 (diff)
parent2d59fe031038e94dd626f3b172653bcb9bab9a2d (diff)
Merge pull request #1933 from armink/add_pm
[DeviceDriver] Add power management device driver.
Diffstat (limited to 'components/drivers/pm/SConscript')
-rw-r--r--components/drivers/pm/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/components/drivers/pm/SConscript b/components/drivers/pm/SConscript
new file mode 100644
index 0000000000..a94fc11f57
--- /dev/null
+++ b/components/drivers/pm/SConscript
@@ -0,0 +1,14 @@
+from building import *
+
+cwd = GetCurrentDir()
+src = []
+CPPPATH = [cwd + '/../include']
+group = []
+
+if GetDepend(['RT_USING_PM']):
+ src = src + ['pm.c']
+
+if len(src):
+ group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')