diff options
| author | heyuanjie87 <[email protected]> | 2018-09-18 18:41:33 +0800 |
|---|---|---|
| committer | heyuanjie87 <[email protected]> | 2018-09-18 18:41:33 +0800 |
| commit | bc5a5f89e9458f1b945e8c17ce1bbe541da152bf (patch) | |
| tree | 2a95f4e39eed382c62808b1520b7afa01f099f27 /components/drivers/mtd/SConscript | |
| parent | 1abe83531cd1800d5f16f3066155f51ef1272593 (diff) | |
添加新的mtd接口
Diffstat (limited to 'components/drivers/mtd/SConscript')
| -rw-r--r-- | components/drivers/mtd/SConscript | 11 |
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'] |
