4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-25 16:37:06 +08:00

23 lines
597 B
Python
Raw Normal View History

2023-08-23 09:11:03 +08:00
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
if GetDepend('BSP_USING_UART') == False:
src_need_remove = ['drv_uart.c'] # need remove file list.
SrcRemove(src, src_need_remove)
if GetDepend('BSP_USING_SPIFLASH') == False:
src_need_remove = ['drv_spiflash.c'] # need remove file list.
SrcRemove(src, src_need_remove)
if GetDepend('BSP_USING_SDIO') == False:
src_need_remove = ['drv_emmc.c'] # need remove file list.
SrcRemove(src, src_need_remove)
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')