From: Steve Reinhardt Date: Wed, 15 Apr 2009 19:52:31 +0000 (-0700) Subject: configs: Allow M5_CPU2000 env var to set CPU2K binary path. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b66e8289781025bbc4d0e152737fa7c5d024ec8;p=gem5.git configs: Allow M5_CPU2000 env var to set CPU2K binary path. It would be nice to have a more comprehensive mechanism but this is a big improvement over manually editing the script. --- diff --git a/configs/common/cpu2000.py b/configs/common/cpu2000.py index a2e64f822..f6c7a164f 100644 --- a/configs/common/cpu2000.py +++ b/configs/common/cpu2000.py @@ -31,7 +31,7 @@ import sys from os.path import basename, exists, join as joinpath, normpath from os.path import isdir, isfile, islink -spec_dist = '/dist/m5/cpu2000' +spec_dist = os.environ.get('M5_CPU2000', '/dist/m5/cpu2000') def copyfiles(srcdir, dstdir): from filecmp import cmp as filecmp