scons: Put all config variables in an env['CONF'] sub-dict.
This makes what are configuration and what are internal SCons variables explicit and separate, and makes it unnecessary to call out what variables to export to C++. These variables will also be plumbed into and out of kconfiglib in later changes. Change-Id: Iaf5e098d7404af06285c421dbdf8ef4171b3f001 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/56892 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -35,7 +35,7 @@ Import('*')
|
||||
# When this dependency is removed, the ruby tester should be compiled
|
||||
# independently from Ruby
|
||||
#
|
||||
if env['PROTOCOL'] == 'None':
|
||||
if env['CONF']['PROTOCOL'] == 'None':
|
||||
Return()
|
||||
|
||||
SimObject('RubyDirectedTester.py', sim_objects=[
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
Import('*')
|
||||
|
||||
if env['PROTOCOL'] == 'None':
|
||||
if env['CONF']['PROTOCOL'] == 'None':
|
||||
Return()
|
||||
|
||||
SimObject('GarnetSyntheticTraffic.py', sim_objects=['GarnetSyntheticTraffic'])
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
|
||||
Import('*')
|
||||
|
||||
if not env['BUILD_GPU']:
|
||||
if not env['CONF']['BUILD_GPU']:
|
||||
Return()
|
||||
|
||||
if env['PROTOCOL'] == 'None':
|
||||
if env['CONF']['PROTOCOL'] == 'None':
|
||||
Return()
|
||||
|
||||
SimObject('ProtocolTester.py', sim_objects=['ProtocolTester'])
|
||||
|
||||
@@ -35,7 +35,7 @@ Import('*')
|
||||
# When this dependency is removed, the ruby tester should be compiled
|
||||
# independently from Ruby
|
||||
#
|
||||
if env['PROTOCOL'] == 'None':
|
||||
if env['CONF']['PROTOCOL'] == 'None':
|
||||
Return()
|
||||
|
||||
SimObject('RubyTester.py', sim_objects=['RubyTester'])
|
||||
|
||||
@@ -65,8 +65,7 @@ if env['USE_PYTHON']:
|
||||
|
||||
# Only build the traffic generator if we have support for protobuf as the
|
||||
# tracing relies on it
|
||||
if env['HAVE_PROTOBUF']:
|
||||
SimObject('TrafficGen.py', sim_objects=['TrafficGen'])
|
||||
Source('trace_gen.cc')
|
||||
Source('traffic_gen.cc')
|
||||
SimObject('TrafficGen.py', sim_objects=['TrafficGen'], tags='protobuf')
|
||||
Source('trace_gen.cc', tags='protobuf')
|
||||
Source('traffic_gen.cc', tags='protobuf')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user