summaryrefslogtreecommitdiff
path: root/components/drivers/pic/SConscript
diff options
context:
space:
mode:
authorzms123456 <[email protected]>2024-02-29 09:39:56 +0800
committerGitHub <[email protected]>2024-02-29 09:39:56 +0800
commit195f94ef1dc9ae48de16902e2ff1646ce0cffb57 (patch)
treefa8edaa56c1c8b25cb2ba5e350f02dd41e39647a /components/drivers/pic/SConscript
parent3816d9fba416338eb626c1d9a560c2a23391ba4b (diff)
[components][drivers]add pic-gic (#8388)
Diffstat (limited to 'components/drivers/pic/SConscript')
-rw-r--r--components/drivers/pic/SConscript11
1 files changed, 10 insertions, 1 deletions
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)