ruby: add RUBY sticky option that must be set to add ruby to the build

Default is false
This commit is contained in:
Nathan Binkert 2009-05-11 10:38:46 -07:00
parent b174ec065e
commit cf6b4ef734
22 changed files with 69 additions and 6 deletions

View file

@ -345,8 +345,9 @@ global_sticky_vars.AddVariables(
('BATCH', 'Use batch pool for build and tests', False),
('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
('EXTRAS', 'Add Extra directories to the compilation', '',
PathListAllExist, PathListMakeAbsolute)
)
PathListAllExist, PathListMakeAbsolute),
BoolVariable('RUBY', 'Build with Ruby', False),
)
# base help text
help_text = '''

View file

@ -34,7 +34,9 @@ SimObject('Bridge.py')
SimObject('Bus.py')
SimObject('MemObject.py')
SimObject('PhysicalMemory.py')
SimObject('RubyMemory.py')
if env['RUBY']:
SimObject('RubyMemory.py')
Source('bridge.cc')
Source('bus.cc')
@ -45,7 +47,9 @@ Source('physical.cc')
Source('port.cc')
Source('tport.cc')
Source('mport.cc')
Source('rubymem.cc')
if env['RUBY']:
Source('rubymem.cc')
if env['FULL_SYSTEM']:
Source('vport.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
#benv['LEXCOM'] = "$LEX $LEXFLAGS -o$TARGET $SOURCES"
benv = env.Clone()
benv.Append(YACCFLAGS=["-pat"])

View file

@ -30,5 +30,8 @@
Import('*')
if not env['RUBY']:
Return()
Source('confio.cc')
Source('initvar.cc')

View file

@ -40,6 +40,9 @@ import SCons
Import('*')
if not env['RUBY']:
Return()
slicc_dir = Dir('../slicc')
protocol_dir = Dir('.')
html_dir = Dir('html')

View file

@ -37,6 +37,9 @@ import SCons
Import('*')
if not env['RUBY']:
Return()
Source('init.cc')
def do_embed_text(target, source, env):

View file

@ -30,6 +30,9 @@
Import('*')
if not main['RUBY']:
Return()
sticky_vars.AddVariables(
BoolVariable('NO_VECTOR_BOUNDS_CHECKS', "Don't do bounds checks", True),
BoolVariable('RUBY_DEBUG', "Add debugging stuff to Ruby", False))

View file

@ -30,5 +30,8 @@
Import('*')
if not env['RUBY']:
Return()
Source('MessageBuffer.cc')
Source('MessageBufferNode.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('Address.cc')
Source('DataBlock.cc')
Source('Debug.cc')

View file

@ -30,4 +30,7 @@
Import('*')
if not env['RUBY']:
Return()
Source('RubyConfig.cc')

View file

@ -30,5 +30,8 @@
Import('*')
if not env['RUBY']:
Return()
Source('RubyEventQueue.cc')
Source('RubyEventQueueNode.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('GarnetNetwork_d.cc')
Source('InputUnit_d.cc')
Source('NetworkInterface_d.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('GarnetNetwork.cc')
Source('InVcState.cc')
Source('NetworkInterface.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('NetworkPower.cc', Werror=False)
Source('power_arbiter.cc')
Source('power_array.cc', Werror=False)

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('PerfectSwitch.cc')
Source('SimpleNetwork.cc')
Source('Switch.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('AccessTraceForAddress.cc')
Source('AddressProfiler.cc')
Source('CacheProfiler.cc')

View file

@ -30,4 +30,7 @@
Import('*')
if not env['RUBY']:
Return()
Source('TraceRecord.cc', Werror=False)

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('AbstractCacheEntry.cc')
Source('AbstractChip.cc')
Source('RubySlicc_Profiler_interface.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('DirectoryMemory.cc')
Source('MemoryControl.cc')
Source('MemoryNode.cc')

View file

@ -30,6 +30,9 @@
Import('*')
if not env['RUBY']:
Return()
Source('Check.cc')
Source('CheckTable.cc')
Source('DetermGETXGenerator.cc')

View file

@ -40,6 +40,9 @@ import SCons
Import('*')
if not env['RUBY']:
Return()
common_dir = Dir('../gems_common')
#

View file

@ -265,8 +265,9 @@ else:
configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest',
'simple-atomic-mp', 'simple-timing-mp', 'o3-timing-mp']
# Hack for Ruby
configs += [c + '-ruby' for c in configs]
if env['RUBY']:
# Hack for Ruby
configs += [c + '-ruby' for c in configs]
cwd = os.getcwd()
os.chdir(str(Dir('.').srcdir))