Added env var to set target.lst

Change-Id: Ie6aefba6ef79360e65d4a64a6be1ec50e59b5741
This commit is contained in:
Wilfried Holzke
2019-09-29 09:22:00 +02:00
کامیت شده توسط Chris Freehill
والد 9b0cd9e428
کامیت 12736c6fd8
+5 -3
مشاهده پرونده
@@ -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: