smart-green-house/rtt-uart-nb/rt-thread/components/drivers/mtd/SConscript

22 lines
416 B
Python
Raw Permalink Normal View History

2023-10-28 18:00:47 +08:00
from building import *
cwd = GetCurrentDir()
src = []
depend = []
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_MTD_NOR']):
src += ['mtd_nor.c']
depend += ['RT_USING_MTD_NOR']
if GetDepend(['RT_USING_MTD_NAND']):
src += ['mtd_nand.c']
depend += ['RT_USING_MTD_NAND']
if src:
group = DefineGroup('DeviceDrivers', src, depend = depend, CPPPATH = CPPPATH)
Return('group')