summaryrefslogtreecommitdiff
path: root/components/drivers/pic/SConscript
diff options
context:
space:
mode:
authorwusongjie <[email protected]>2023-07-05 13:50:18 +0800
committerwusongjie <[email protected]>2023-07-05 16:45:16 +0800
commit8aa4366cb2910c2c61729608d9f2a90868d16deb (patch)
treee6eca929c54cd5eda0b71c7b3582c3b663be668b /components/drivers/pic/SConscript
parent950d71e1accaee3e4aa76438601715395015943f (diff)
Drivers: Support Open Firmware API and model of PIC
We support OFW API to replace fdt old API, and add IRQ, IO, Platform-Bus, CPUs ... OFW node contorl. To support work with Device Tree or ACPI in drivers that use IRQ, we make a programmable interrupt controller driver's model. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/pic/SConscript')
-rw-r--r--components/drivers/pic/SConscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/drivers/pic/SConscript b/components/drivers/pic/SConscript
new file mode 100644
index 0000000000..ade23fc309
--- /dev/null
+++ b/components/drivers/pic/SConscript
@@ -0,0 +1,15 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_USING_PIC']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../include']
+
+src = ['pic.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')