summaryrefslogtreecommitdiff
path: root/components/drivers/ofw/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/ofw/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/ofw/SConscript')
-rw-r--r--components/drivers/ofw/SConscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/components/drivers/ofw/SConscript b/components/drivers/ofw/SConscript
new file mode 100644
index 0000000000..d878c0c64a
--- /dev/null
+++ b/components/drivers/ofw/SConscript
@@ -0,0 +1,22 @@
+from building import *
+
+objs = []
+
+if not GetDepend(['RT_USING_OFW']):
+ Return('objs')
+
+cwd = GetCurrentDir()
+list = os.listdir(cwd)
+CPPPATH = [cwd, cwd + '/../include']
+
+src = Glob('*.c')
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+for d in list:
+ path = os.path.join(cwd, d)
+ if os.path.isfile(os.path.join(path, 'SConscript')):
+ objs = objs + SConscript(os.path.join(d, 'SConscript'))
+objs = objs + group
+
+Return('objs')