From 8aa4366cb2910c2c61729608d9f2a90868d16deb Mon Sep 17 00:00:00 2001 From: wusongjie Date: Wed, 5 Jul 2023 13:50:18 +0800 Subject: 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 --- components/drivers/ofw/SConscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 components/drivers/ofw/SConscript (limited to 'components/drivers/ofw/SConscript') 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') -- cgit v1.3.1