Added env var to set target.lst

Change-Id: Ie6aefba6ef79360e65d4a64a6be1ec50e59b5741


[ROCm/rocminfo commit: 12736c6fd8]
Este commit está contenido en:
Wilfried Holzke
2019-09-29 09:22:00 +02:00
cometido por Chris Freehill
padre 8eeb8d3e5f
commit 3960cc7d49
+5 -3
Ver fichero
@@ -55,9 +55,11 @@ def getGCNISA(line, match_from_beginning = False):
def readFromTargetLstFile():
target_list = []
# locate target.lst which should be placed at the same directory with this
# script
target_lst_path = os.path.join(CWD, "target.lst")
# locate target.lst using environment variable or
# it should be placed at the same directory with this script
target_lst_path = os.environ.get("ROCM_TARGET_LST");
if target_lst_path == None:
target_lst_path = os.path.join(CWD, "target.lst")
if os.path.isfile(target_lst_path):
target_lst_file = open(target_lst_path, 'r')
for line in target_lst_file: