@@ -472,7 +472,7 @@ def mk_run(target, data):
472472 target .write (arg )
473473 if not ("platform_type" in data and data ["platform_type" ] == "pcie" ):
474474 target .write ("\n else\n " )
475- target .write ("\t $(ABS_COMMON_REPO)/common/utility/run_emulation.pl \" ${LAUNCH_EMULATOR} | tee run_app.log \" \" ${RUN_APP_SCRIPT} $(TARGET) \" \" ${RESULT_STRING} \" \" 7 \" " )
475+ target .write ("\t $(LAUNCH_EMULATOR_CMD) " )
476476 if "containers" in data :
477477 target .write ("\n " )
478478 else :
@@ -537,7 +537,7 @@ def mk_run(target, data):
537537 target .write (arg )
538538 if not ("platform_type" in data and data ["platform_type" ] == "pcie" ):
539539 target .write ("\n else\n " )
540- target .write ("\t $(ABS_COMMON_REPO)/common/utility/run_emulation.pl \" ${LAUNCH_EMULATOR} | tee embedded_run.log \" \" ${RUN_APP_SCRIPT} $(TARGET) \" \" ${RESULT_STRING} \" \" 7 \" " )
540+ target .write ("\t $(LAUNCH_EMULATOR_CMD) " )
541541 if "containers" in data :
542542 target .write ("\n " )
543543 else :
@@ -694,6 +694,20 @@ def report_gen(target, data):
694694
695695 target .write ("DEBUG := no\n " )
696696 target .write ("B_TEMP = `$(ABS_COMMON_REPO)/common/utility/parse_platform_list.py $(DEVICE)`\n " )
697+ if not ("platform_type" in data and data ["platform_type" ] == "pcie" ):
698+ target .write ("PERL := \n " )
699+ target .write ("QEMU_IMODE := no\n " )
700+ target .write ("LAUNCH_EMULATOR_CMD := \n " )
701+ target .write ("\n " )
702+ target .write ("ifneq ($(PERL), /tools/xgs/perl/5.8.5/bin/perl)\n " )
703+ target .write ("\t QEMU_IMODE = yes\n " )
704+ target .write ("endif\n " )
705+ target .write ("\n " )
706+ target .write ("ifeq ($(QEMU_IMODE), yes)\n " )
707+ target .write ("\t LAUNCH_EMULATOR_CMD = $(LAUNCH_EMULATOR)\n " )
708+ target .write ("else\n " )
709+ target .write ("\t LAUNCH_EMULATOR_CMD = $(PERL) $(ABS_COMMON_REPO)/common/utility/run_emulation.pl \" ${LAUNCH_EMULATOR} | tee run_app.log\" \" ${RUN_APP_SCRIPT} $(TARGET)\" \" ${RESULT_STRING}\" \" 7\" \n " )
710+ target .write ("endif\n " )
697711 target .write ("\n " )
698712 target .write ("#Generates debug summary report\n " )
699713 target .write ("ifeq ($(DEBUG), yes)\n " )
0 commit comments