summaryrefslogtreecommitdiff
path: root/src/cpu/testers
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2018-02-15 17:31:10 -0500
committerBrandon Potter <Brandon.Potter@amd.com>2018-08-17 17:21:02 +0000
commit9883fb6b58f0e1a7f6d66f52eb29e534cc5f652f (patch)
tree9fcc28473ba28d1d6dc0c5abb5a422a044cdd6e8 /src/cpu/testers
parent13bc177e2db04e42f2a26ea5bbee2c035cf9279f (diff)
downloadgem5-9883fb6b58f0e1a7f6d66f52eb29e534cc5f652f.tar.xz
scons,ruby: do not generate unnecessary files
Do not generate garnet tester file or Ruby debug headers without a Ruby protocol (i.e. PROTOCOL=None). It makes no sense to include these files into the build when there will be no protocol to utilize them. Change-Id: I8db4dd532f60008217a10c88a2e089f85df9d104 Reviewed-on: https://gem5-review.googlesource.com/8381 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/testers')
-rw-r--r--src/cpu/testers/garnet_synthetic_traffic/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/testers/garnet_synthetic_traffic/SConscript b/src/cpu/testers/garnet_synthetic_traffic/SConscript
index f1624b05e..8fe4def36 100644
--- a/src/cpu/testers/garnet_synthetic_traffic/SConscript
+++ b/src/cpu/testers/garnet_synthetic_traffic/SConscript
@@ -30,6 +30,9 @@
Import('*')
+if env['PROTOCOL'] == 'None':
+ Return()
+
SimObject('GarnetSyntheticTraffic.py')
Source('GarnetSyntheticTraffic.cc')