summaryrefslogtreecommitdiff
path: root/components/drivers/mtd/SConscript
diff options
context:
space:
mode:
authorheyuanjie87 <[email protected]>2018-09-18 18:41:33 +0800
committerheyuanjie87 <[email protected]>2018-09-18 18:41:33 +0800
commitbc5a5f89e9458f1b945e8c17ce1bbe541da152bf (patch)
tree2a95f4e39eed382c62808b1520b7afa01f099f27 /components/drivers/mtd/SConscript
parent1abe83531cd1800d5f16f3066155f51ef1272593 (diff)
添加新的mtd接口
Diffstat (limited to 'components/drivers/mtd/SConscript')
-rw-r--r--components/drivers/mtd/SConscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/drivers/mtd/SConscript b/components/drivers/mtd/SConscript
index bc2bd54218..462c38194c 100644
--- a/components/drivers/mtd/SConscript
+++ b/components/drivers/mtd/SConscript
@@ -9,6 +9,17 @@ depend = []
CPPPATH = [cwd + '/../include']
group = []
+if GetDepend(['RT_USING_MTD']):
+ src += ['mtd.c']
+ depend += ['RT_USING_MTD']
+
+ if GetDepend(['MTD_USING_NOR']):
+ src += ['mtdnor.c']
+ depend += ['MTD_USING_NOR']
+ if GetDepend(['MTD_USING_NAND']):
+ src += ['mtdnand.c']
+ depend += ['MTD_USING_NAND']
+
if GetDepend(['RT_USING_MTD_NOR']):
src += ['mtd_nor.c']
depend += ['RT_USING_MTD_NOR']