From 195f94ef1dc9ae48de16902e2ff1646ce0cffb57 Mon Sep 17 00:00:00 2001 From: zms123456 <85141075+zmshahaha@users.noreply.github.com> Date: Thu, 29 Feb 2024 09:39:56 +0800 Subject: [components][drivers]add pic-gic (#8388) --- components/drivers/pic/SConscript | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'components/drivers/pic/SConscript') diff --git a/components/drivers/pic/SConscript b/components/drivers/pic/SConscript index ade23fc309..e820792aa6 100644 --- a/components/drivers/pic/SConscript +++ b/components/drivers/pic/SConscript @@ -8,7 +8,16 @@ if not GetDepend(['RT_USING_PIC']): cwd = GetCurrentDir() CPPPATH = [cwd + '/../include'] -src = ['pic.c'] +src = ['pic.c', 'pic_rthw.c'] + +if GetDepend(['RT_PIC_ARM_GIC']) or GetDepend(['RT_PIC_ARM_GIC_V3']): + src += ['pic-gic-common.c'] + +if GetDepend(['RT_PIC_ARM_GIC']): + src += ['pic-gicv2.c'] + +if GetDepend(['RT_PIC_ARM_GIC_V3']): + src += ['pic-gicv3.c'] group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) -- cgit v1.3.1