summaryrefslogtreecommitdiff
path: root/components/drivers/hwspinlock/SConscript
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2025-12-09 19:53:55 +0800
committerR b b666 <[email protected]>2025-12-11 11:08:33 +0800
commitdd20176cbae0a4f5867829ce776e09245239d01c (patch)
tree958b6d2a2c6774e052f2ef27ea623b8f90efa9ac /components/drivers/hwspinlock/SConscript
parentd76356b94ec8e0ea45e7b1d5996a827e0f52be15 (diff)
[dm][hwspinlock] support hwspinlock
Hardware spinlock modules provide hardware assistance for synchronization and mutual exclusion between heterogeneous processors and those not operating under a single, shared operating system. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/hwspinlock/SConscript')
-rw-r--r--components/drivers/hwspinlock/SConscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/drivers/hwspinlock/SConscript b/components/drivers/hwspinlock/SConscript
new file mode 100644
index 0000000000..81ed9adcca
--- /dev/null
+++ b/components/drivers/hwspinlock/SConscript
@@ -0,0 +1,15 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_USING_HWSPINLOCK']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../include']
+
+src = ['hwspinlock.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')