diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:33 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:33 -0800 |
commit | 90aab239a150f8c998b16ff0a6c297ec0ef065c2 (patch) | |
tree | 05f0dbade72a05d314d5f1feff9ffd78f12994cd /src | |
parent | 057f5898ca5c2d43240ab756240abe8ddc7700be (diff) | |
download | gem5-90aab239a150f8c998b16ff0a6c297ec0ef065c2.tar.xz |
ruby: Added a Scons option to prevent HTML file creation
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/protocol/SConscript | 14 | ||||
-rw-r--r-- | src/mem/protocol/SConsopts | 3 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/mem/protocol/SConscript b/src/mem/protocol/SConscript index 8d9ebf3b1..2c29ea374 100644 --- a/src/mem/protocol/SConscript +++ b/src/mem/protocol/SConscript @@ -87,8 +87,11 @@ def slicc_emitter(target, source, env): print "SLICC writing C++ files..." slicc.writeCodeFiles(pdir) - print "SLICC writing HTML files..." - slicc.writeHTMLFiles(hdir) + if env['NO_HTML']: + print "skipping HTML file creation" + else: + print "SLICC writing HTML files..." + slicc.writeHTMLFiles(hdir) return target, source def slicc_action(target, source, env): @@ -114,8 +117,11 @@ def slicc_action(target, source, env): print "SLICC writing C++ files..." slicc.writeCodeFiles(pdir) - print "SLICC writing HTML files..." - slicc.writeHTMLFiles(hdir) + if env['NO_HTML']: + print "skipping HTML file creation" + else: + print "SLICC writing HTML files..." + slicc.writeHTMLFiles(hdir) slicc_builder = Builder(action=slicc_action, emitter=slicc_emitter) diff --git a/src/mem/protocol/SConsopts b/src/mem/protocol/SConsopts index 9c91bca2b..222e8d802 100644 --- a/src/mem/protocol/SConsopts +++ b/src/mem/protocol/SConsopts @@ -55,3 +55,6 @@ opt = EnumVariable('PROTOCOL', 'Coherence Protocol for Ruby', 'MOESI_CMP_directo sticky_vars.AddVariables(opt) export_vars += ['PROTOCOL'] + +opt = BoolVariable('NO_HTML', 'Do not create HTML files', False) +sticky_vars.AddVariables(opt) |