summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@gmail.com>2008-02-11 08:04:01 -0800
committerSteve Reinhardt <stever@gmail.com>2008-02-11 08:04:01 -0800
commit2f7421b12b4a557ff1a2e4dcebcfd3484778fb95 (patch)
treee3d14524da68223291c9e4b7e0397ed929ce327e /src
parent476a2ee950d989a501e4eedf164185690f967f1f (diff)
downloadgem5-2f7421b12b4a557ff1a2e4dcebcfd3484778fb95.tar.xz
EXTRAS now points to src instead of needing 'src' subdir.
--HG-- extra : convert_revision : 8e7e4516ace8c7852eeea3c479bfd567839a8061
Diffstat (limited to 'src')
-rw-r--r--src/SConscript9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/SConscript b/src/SConscript
index 2ca8aa56d..69c5b946d 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -177,21 +177,18 @@ env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])
########################################################################
#
-# Walk the tree and execute all SConscripts in 'src' subdirectories
+# Walk the tree and execute all SConscripts in subdirectories
#
for base_dir in base_dir_list:
- src_dir = joinpath(base_dir, 'src')
- if not isdir(src_dir):
- continue
here = Dir('.').srcnode().abspath
- for root, dirs, files in os.walk(src_dir, topdown=True):
+ for root, dirs, files in os.walk(base_dir, topdown=True):
if root == here:
# we don't want to recurse back into this SConscript
continue
if 'SConscript' in files:
- build_dir = joinpath(env['BUILDDIR'], root[len(src_dir) + 1:])
+ build_dir = joinpath(env['BUILDDIR'], root[len(base_dir) + 1:])
SConscript(joinpath(root, 'SConscript'), build_dir=build_dir)
for opt in env.ExportOptions: