4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 04:33:31 +08:00
GuEe-GUI 88b8310d16 [DM/PCI] Add DesignWare PCIe RC/EP base drivers
Too many PCI controllers base on DesignWare PCIe.
This is a modules.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-11-28 09:46:58 +08:00

22 lines
413 B
Python

from building import *
group = []
if not GetDepend(['RT_PCI_DW']):
Return('group')
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../../../include']
src = ['pcie-dw.c', 'pcie-dw_platfrom.c']
if GetDepend(['RT_PCI_DW_HOST']):
src += ['pcie-dw_host.c']
if GetDepend(['RT_PCI_DW_EP']):
src += ['pcie-dw_ep.c']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')