SConscript (6654:4c84e771cca7) SConscript (6656:69714e675ee2)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 475 unchanged lines hidden (view full) ---

484 hh_file = File('params/%s.hh' % name)
485 params_hh_files.append(hh_file)
486 env.Command(hh_file, Value(name), createSimObjectParam)
487 env.Depends(hh_file, depends + extra_deps)
488
489# Generate any parameter header files needed
490params_i_files = []
491for name,param in all_params.iteritems():
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 475 unchanged lines hidden (view full) ---

484 hh_file = File('params/%s.hh' % name)
485 params_hh_files.append(hh_file)
486 env.Command(hh_file, Value(name), createSimObjectParam)
487 env.Depends(hh_file, depends + extra_deps)
488
489# Generate any parameter header files needed
490params_i_files = []
491for name,param in all_params.iteritems():
492 if isinstance(param, m5.params.VectorParamDesc):
493 ext = 'vptype'
494 else:
495 ext = 'ptype'
496
497 i_file = File('params/%s_%s.i' % (name, ext))
492 i_file = File('params/%s_%s.i' % (name, param.file_ext))
498 params_i_files.append(i_file)
499 env.Command(i_file, Value(name), createSwigParam)
500 env.Depends(i_file, depends)
501
502# Generate all enum header files
503for name,enum in sorted(all_enums.iteritems()):
504 py_source = PySource.modules[enum.__module__]
505 extra_deps = [ py_source.tnode ]

--- 577 unchanged lines hidden ---
493 params_i_files.append(i_file)
494 env.Command(i_file, Value(name), createSwigParam)
495 env.Depends(i_file, depends)
496
497# Generate all enum header files
498for name,enum in sorted(all_enums.iteritems()):
499 py_source = PySource.modules[enum.__module__]
500 extra_deps = [ py_source.tnode ]

--- 577 unchanged lines hidden ---