scons: Limit adding fastmodel files and libpath (#629)

The change will only add include and library path if the fastmodel is
required to build. The change will benefit for most of gem5 build.

Change-Id: I98c20bd1470b7227940036199e02bc001e307eac
This commit is contained in:
Yu-Cheng Chang
2023-11-30 23:36:26 +08:00
committed by GitHub
parent 9afe9932bc
commit a16fd8a592
7 changed files with 20 additions and 0 deletions

View File

@@ -25,6 +25,9 @@
Import('*')
if not env['CONF']['USE_ARM_FASTMODEL']:
Return()
protocol_dir = Dir('..').Dir('protocol')
for name in ('x1', 'x2', 'x3', 'x4'):

View File

@@ -25,6 +25,9 @@
Import('*')
if not env['CONF']['USE_ARM_FASTMODEL']:
Return()
protocol_dir = Dir('..').Dir('protocol')
for name in ('x1', 'x2', 'x3', 'x4'):

View File

@@ -25,6 +25,9 @@
Import('*')
if not env['CONF']['USE_ARM_FASTMODEL']:
Return()
protocol_dir = Dir('..').Dir('protocol')
ArmFastModelComponent(File('GIC.sgproj'), File('GIC.lisa'),

View File

@@ -25,6 +25,9 @@
Import('*')
if not env['CONF']['USE_ARM_FASTMODEL']:
Return()
protocol_dir = Dir('..').Dir('protocol')
ArmFastModelComponent(File('PL330.sgproj'), File('PL330.lisa'),

View File

@@ -49,6 +49,8 @@ import os.path
if env['CONF']['USE_ARM_FASTMODEL']:
env.TagImplies('arm fastmodel', 'arm isa')
else:
Return()
def extract_var(name):
val = env['CONF'].get(name, None)

View File

@@ -25,6 +25,9 @@
Import('*')
if not env['CONF']['USE_ARM_FASTMODEL']:
Return()
SimObject('Iris.py', sim_objects=[
'IrisTLB', 'IrisMMU', 'IrisInterrupts', 'IrisISA', 'IrisBaseCPU'],
tags='arm fastmodel')

View File

@@ -25,6 +25,9 @@
Import('*')
if not env['CONF']['USE_ARM_FASTMODEL']:
Return()
SimObject('FastModelResetControllerExample.py', sim_objects=[
'FastModelResetControllerExample'], tags='arm fastmodel')