summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-06-14 12:10:50 -0700
committerNathan Binkert <nate@binkert.org>2008-06-14 12:10:50 -0700
commit7a58b5a38a15b5e025435820a2679c34eb2c47a4 (patch)
treebadffa81a179f9fe9d7de62a49d08f11a235f590 /src/SConscript
parent2d037682ff800fa44e715250b07d708bbf4bde91 (diff)
downloadgem5-7a58b5a38a15b5e025435820a2679c34eb2c47a4.tar.xz
Add missing dependencies on .i files
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript
index b9c83af9e..7a6a762fe 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -266,6 +266,7 @@ for name,simobj in generate.sim_objects.iteritems():
env.Depends(hh_file, depends + extra_deps)
# Generate any parameter header files needed
+params_i_files = []
for name,param in generate.params.iteritems():
if isinstance(param, m5.params.VectorParamDesc):
ext = 'vptype'
@@ -273,6 +274,7 @@ for name,param in generate.params.iteritems():
ext = 'ptype'
i_file = File('params/%s_%s.i' % (name, ext))
+ params_i_files.append(i_file)
env.Command(i_file, Value(name), generate.createSwigParam)
env.Depends(i_file, depends)
@@ -295,7 +297,7 @@ params_file = File('params/params.i')
names = sort_list(generate.sim_objects.keys())
env.Command(params_file, [ Value(v) for v in names ],
generate.buildParams)
-env.Depends(params_file, params_hh_files + depends)
+env.Depends(params_file, params_hh_files + params_i_files + depends)
SwigSource('m5.objects', params_file)
# Build all swig modules