mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-25 03:38:23 +08:00
1. version for v1.2 2. support packed queue 1. support MMIO/PCI over bus 2. new virtio queue api with dma/cpu sync 3. update for virtio device drivers: - net - block - console - input - gpu 4. new virtio device drivers: - 9p - crypto - rng - scmi - scsi Signed-off-by: GuEe-GUI <2991707448@qq.com>
52 lines
1.1 KiB
Python
52 lines
1.1 KiB
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_VIRTIO']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
src = ['virtio.c', 'virtio_queue.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_TRANSPORT_MMIO']):
|
|
src += ['virtio_mmio.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_TRANSPORT_PCI']):
|
|
src += ['virtio_pci.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_NET']):
|
|
src += ['virtio-net.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_BLK']):
|
|
src += ['virtio-blk.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_CONSOLE']) or GetDepend(['RT_VIRTIO_RPROC_SERIAL']):
|
|
src += ['virtio-console.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_RNG']):
|
|
src += ['virtio-rng.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_SCSI']):
|
|
src += ['virtio-scsi.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_9P']):
|
|
src += ['virtio-9p.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_GPU']):
|
|
src += ['virtio-gpu.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_INPUT']):
|
|
src += ['virtio-input.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_CRYPTO']):
|
|
src += ['virtio-crypto.c']
|
|
|
|
if GetDepend(['RT_VIRTIO_SCMI']):
|
|
src += ['virtio-scmi.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|