From c92ec76df849690239b7baab4b6f131eb8359e1a Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Thu, 27 Jun 2019 07:43:53 +0000 Subject: [PATCH] [Device Drivers] Remove backup mtd code --- components/drivers/mtd/SConscript | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/components/drivers/mtd/SConscript b/components/drivers/mtd/SConscript index 462c38194c..6f86656187 100644 --- a/components/drivers/mtd/SConscript +++ b/components/drivers/mtd/SConscript @@ -1,5 +1,3 @@ -Import('RTT_ROOT') -Import('rtconfig') from building import * cwd = GetCurrentDir() @@ -9,17 +7,6 @@ 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'] @@ -31,4 +18,4 @@ if GetDepend(['RT_USING_MTD_NAND']): if src: group = DefineGroup('DeviceDrivers', src, depend = depend, CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') -- GitLab