mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-13 00:49:20 +08:00
22 lines
375 B
Python
22 lines
375 B
Python
|
from building import *
|
||
|
|
||
|
group = []
|
||
|
|
||
|
if not GetDepend(['RT_USING_ATA']):
|
||
|
Return('group')
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
CPPPATH = [cwd + '/../include']
|
||
|
|
||
|
src = []
|
||
|
|
||
|
if GetDepend(['RT_ATA_AHCI']):
|
||
|
src += ['ahci.c']
|
||
|
|
||
|
if GetDepend(['RT_ATA_AHCI_PCI']):
|
||
|
src += ['ahci-pci.c']
|
||
|
|
||
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|