mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-02 03:50:26 +08:00
22 lines
378 B
Python
22 lines
378 B
Python
|
from building import *
|
||
|
|
||
|
group = []
|
||
|
|
||
|
if not GetDepend(['RT_USING_SCSI']):
|
||
|
Return('group')
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
CPPPATH = [cwd + '/../include']
|
||
|
|
||
|
src = ['scsi.c']
|
||
|
|
||
|
if GetDepend(['RT_SCSI_SD']):
|
||
|
src += ['scsi_sd.c']
|
||
|
|
||
|
if GetDepend(['RT_SCSI_CDROM']):
|
||
|
src += ['scsi_cdrom.c']
|
||
|
|
||
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|