summaryrefslogtreecommitdiff
path: root/components/drivers/mailbox/SConscript
diff options
context:
space:
mode:
authorGUI <[email protected]>2024-11-25 11:00:04 +0800
committerGitHub <[email protected]>2024-11-25 11:00:04 +0800
commitf849afb5ca40f4843d86d6bd55253b2db57a7ad4 (patch)
tree5ea0287d22459c1df3753d29a2247fc336fb0347 /components/drivers/mailbox/SConscript
parent8ed4ae144fda951d7a3f5ffbfbf810b1ce1bf2c8 (diff)
[DM/FEATURE] Support hardware mailbox (#9599)
* [DM/FEATURE] Support hardware mailbox * [MAILBOX/PIC] Add PIC Mailbox drivers. The mailbox device(s) may be instantiated in one of three equivalent way: Device Tree node, eg.: ```dts interrupt-controller@0 { interrupt-controller; #interrupt-cells = <1>; }; pic_mailbox@10000 { compatible = "rt-thread,pic-mailbox"; reg = <0x10000 0x100>; position = <0>; interrupts = <34>; peer-interrupts = <35>; uid = <0>; #mbox-cells = <1>; }; ``` Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/mailbox/SConscript')
-rwxr-xr-xcomponents/drivers/mailbox/SConscript18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/drivers/mailbox/SConscript b/components/drivers/mailbox/SConscript
new file mode 100755
index 0000000000..f26a44b0ce
--- /dev/null
+++ b/components/drivers/mailbox/SConscript
@@ -0,0 +1,18 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_USING_MBOX']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../include']
+
+src = ['mailbox.c']
+
+if GetDepend(['RT_MBOX_PIC']):
+ src += ['mailbox-pic.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')