From b13e28afbb0f4bd5ce064339fb527bd5c6b1029c Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 2 Jul 2004 21:16:38 -0700 Subject: 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 --- base/traceflags.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'base') 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. -- cgit v1.2.3