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'
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)
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