changeset b5052cad1fd3 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b5052cad1fd3
description:
        Scons: Make some Action objects fit the abreviated output format.

diffstat:

 SConstruct              |  7 +------
 src/mem/ruby/SConscript |  3 ++-
 2 files changed, 3 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 353abb676fa2 -r b5052cad1fd3 SConstruct
--- a/SConstruct        Tue Aug 02 00:10:08 2011 -0500
+++ b/SConstruct        Tue Aug 02 03:22:11 2011 -0700
@@ -835,13 +835,8 @@
     f.close()
     return None
 
-# Generate the message to be printed when building the config file.
-def build_config_file_string(target, source, env):
-    (variable, value) = [s.get_contents() for s in source]
-    return "Defining %s as %s in %s." % (variable, value, target[0])
-
 # Combine the two functions into a scons Action object.
-config_action = Action(build_config_file, build_config_file_string)
+config_action = MakeAction(build_config_file, Transform("CONFIG H", 2))
 
 # The emitter munges the source & target node lists to reflect what
 # we're really doing.
diff -r 353abb676fa2 -r b5052cad1fd3 src/mem/ruby/SConscript
--- a/src/mem/ruby/SConscript   Tue Aug 02 00:10:08 2011 -0500
+++ b/src/mem/ruby/SConscript   Tue Aug 02 03:22:11 2011 -0700
@@ -86,7 +86,8 @@
 
 def MakeInclude(source):
     target = generated_dir.File(basename(source))
-    env.Command(target, source, MakeIncludeAction)
+    include_action = MakeAction(MakeIncludeAction, Transform("MAKE INC", 1))
+    env.Command(target, source, include_action)
 
 MakeInclude('slicc_interface/AbstractEntry.hh')
 MakeInclude('slicc_interface/AbstractCacheEntry.hh')
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to