summaryrefslogtreecommitdiff
path: root/src/python/SConscript
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-02-13 00:16:41 -0800
committerNathan Binkert <binkertn@umich.edu>2007-02-13 00:16:41 -0800
commitd7c1436a448ac4f477f658964af6c5b82eb9fcb2 (patch)
treecba9e33bd86f58d154b49e7674e1487f0418251b /src/python/SConscript
parentf72a9993931c7b986df771878e22cada0028955f (diff)
downloadgem5-d7c1436a448ac4f477f658964af6c5b82eb9fcb2.tar.xz
Rearrange traceflags.py so that the file generation only happens if
the script is invoked as main. This allows us to import traceflags.py if we just want the list of available flags. Embed traceflags.py into the zipfile so it can be accessed from the python side of things. With this, print an error on invalid flags and add --trace-help option that will print out the list of trace flags that are compiled in. If a flag is prefixed with a '-', now that flag will be disabled. --HG-- extra : convert_revision : 2260a596b07d127c582ff73474dbbdb0583db524
Diffstat (limited to 'src/python/SConscript')
-rw-r--r--src/python/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/SConscript b/src/python/SConscript
index 61cab45f3..51271650f 100644
--- a/src/python/SConscript
+++ b/src/python/SConscript
@@ -97,6 +97,7 @@ addPkg('m5')
pyzip_files.append('m5/defines.py')
pyzip_files.append('m5/info.py')
pyzip_files.append(join(env['ROOT'], 'util/pbs/jobfile.py'))
+pyzip_files.append(join(env['ROOT'], 'src/base/traceflags.py'))
def swig_it(basename):
env.Command(['swig/%s_wrap.cc' % basename, 'm5/internal/%s.py' % basename],