2023-08-30 16:21:18 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
src = Glob('*.c')
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
|
|
if GetDepend('AIC_SDMC_DRV'):
|
|
|
|
|
src += Glob('sdmc_disk/*.c')
|
|
|
|
|
|
2024-01-27 08:47:24 +08:00
|
|
|
if GetDepend('AIC_USB_HOST_EHCI_DRV'):
|
2023-08-30 16:21:18 +08:00
|
|
|
src += Glob('usb_disk/*.c')
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
if GetDepend('AIC_SPINAND_DRV'):
|
|
|
|
|
src += Glob('spinand_disk/*.c')
|
|
|
|
|
|
2024-01-27 08:47:24 +08:00
|
|
|
if GetDepend('AIC_SPINOR_DRV'):
|
|
|
|
|
src += Glob('spinor_disk/*.c')
|
|
|
|
|
|
2023-08-30 16:21:18 +08:00
|
|
|
group = DefineGroup('Filesystem', src, depend = ['LPKG_USING_DFS', 'LPKG_USING_DFS_ELMFAT'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
|
|
Return('group')
|