From 90aab239a150f8c998b16ff0a6c297ec0ef065c2 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 29 Jan 2010 20:29:33 -0800 Subject: [PATCH] ruby: Added a Scons option to prevent HTML file creation --- src/mem/protocol/SConscript | 14 ++++++++++---- 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)