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:
@@ -85,13 +85,12 @@ Source('pc_event.cc')
|
||||
SimObject('FuncUnit.py', sim_objects=['OpDesc', 'FUDesc'], enums=['OpClass'])
|
||||
SimObject('StaticInstFlags.py', enums=['StaticInstFlags'])
|
||||
|
||||
if env['TARGET_ISA'] == 'null':
|
||||
if env['CONF']['TARGET_ISA'] == 'null':
|
||||
Return()
|
||||
|
||||
# Only build the protobuf instructions tracer if we have protobuf support.
|
||||
if env['HAVE_PROTOBUF']:
|
||||
SimObject('InstPBTrace.py', sim_objects=['InstPBTrace'])
|
||||
Source('inst_pb_trace.cc')
|
||||
SimObject('InstPBTrace.py', sim_objects=['InstPBTrace'], tags='protobuf')
|
||||
Source('inst_pb_trace.cc', tags='protobuf')
|
||||
|
||||
SimObject('CheckerCPU.py', sim_objects=['CheckerCPU'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user