3d503e931b
Fix some code style and init for V2M, ITS. V2M is the PCI MSI/MSI-X for GICv2. ITS is the PCI MSI/MSI-X for GICv3/v4. Signed-off-by: GuEe-GUI <2991707448@qq.com>
31 lines
642 B
Python
31 lines
642 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_PIC']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
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_V2M']):
|
|
src += ['pic-gicv2m.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC_V3']):
|
|
src += ['pic-gicv3.c']
|
|
|
|
if GetDepend(['RT_PIC_ARM_GIC_V3_ITS']):
|
|
src += ['pic-gicv3-its.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|