diff options
| author | Bernard Xiong <[email protected]> | 2018-09-20 18:16:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-20 18:16:21 +0800 |
| commit | a13565ce265fd0cbd291c963435a944da5b3e5b1 (patch) | |
| tree | 0021a9676ec628024406765d0cfae57127793050 /components/drivers/mtd/SConscript | |
| parent | 5253d4e37df532538ec620cc836ca4e33c515806 (diff) | |
| parent | b620c1001423f4724079963f815bcf7a64d490a8 (diff) | |
Merge pull request #1825 from heyuanjie87/mtd-kenghuo-cla
添加新的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'] |
