diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-07-02 21:16:38 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-07-02 21:16:38 -0700 |
commit | b13e28afbb0f4bd5ce064339fb527bd5c6b1029c (patch) | |
tree | d2d25b8f44bb631f25915e71c16a6ca9dbc996c7 /base | |
parent | 6083c8280b3042ddbdbdfc3868a26bd69712d4d7 (diff) | |
download | gem5-b13e28afbb0f4bd5ce064339fb527bd5c6b1029c.tar.xz |
Initial SCons-based build system. See www.scons.org.
'cd build; scons' will build ALPHA/m5.debug.
Use e.g. 'scons KERNEL/m5.opt' to build other binaries.
Read the comments in build/SConstruct for more details.
base/traceflags.py:
Take basename of generated cc/hh files from command line instead
of hardwiring them. Lets us call the script from a different
directory and still have the files end up in the right place
(e.g. "base/traceflags.py base/traceflags").
--HG--
extra : convert_revision : ee4dbb59040cf07590929275f6c1c01e8d4e00b4
Diffstat (limited to 'base')
-rw-r--r-- | base/traceflags.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/base/traceflags.py b/base/traceflags.py index 363d44ffb..8e1594b24 100644 --- a/base/traceflags.py +++ b/base/traceflags.py @@ -30,8 +30,15 @@ # This file generates the header and source files for the flags # that control the tracing facility. # -hhfilename="traceflags.hh" -ccfilename="traceflags.cc" + +import sys + +if len(sys.argv) != 2: + print "%s: Need argument (basename of cc/hh files)" % sys.argv[0] + sys.exit(1) + +hhfilename = sys.argv[1] + '.hh' +ccfilename = sys.argv[1] + '.cc' # # The list of trace flags that can be used to condition DPRINTFs etc. |