diff options
| author | [email protected] <[email protected]> | 2012-06-27 00:59:28 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-06-27 00:59:28 +0000 |
| commit | a97ed29249f3e13e55f6ae203be52980ed9f6211 (patch) | |
| tree | 593077e10c13ee084061dccffea90ff3952ae073 /bsp/sam7x/SConscript | |
| parent | 6c19a26481702ac526898fc65fd166168aee2422 (diff) | |
update the sam7x project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2189 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/sam7x/SConscript')
| -rw-r--r-- | bsp/sam7x/SConscript | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/bsp/sam7x/SConscript b/bsp/sam7x/SConscript index 2804c7dedf..0992612410 100644 --- a/bsp/sam7x/SConscript +++ b/bsp/sam7x/SConscript @@ -1,19 +1,12 @@ -import rtconfig -Import('RTT_ROOT') from building import * -src_bsp = ['application.c', 'startup.c', 'board.c'] -src_drv = ['serial.c'] +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) -if GetDepend('RT_USING_DFS'): - src_drv += ['sd.c'] +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) -if GetDepend('RT_USING_LWIP'): - src_drv += ['sam7x_emac.c'] - - -src = File(src_bsp + src_drv) -CPPPATH = [RTT_ROOT + '/bsp/sam7x'] -group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') +Return('objs') |
