From 272b0dafbae1bf17dd644cd73c043ac3b50caa7f Mon Sep 17 00:00:00 2001 From: Andrea Belano Date: Tue, 28 Jan 2025 16:07:14 +0100 Subject: [PATCH] Fix run target for pulp cluster --- rules/pulpos/targets/pulp_cluster.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rules/pulpos/targets/pulp_cluster.mk b/rules/pulpos/targets/pulp_cluster.mk index 6f0af47..d2e6248 100644 --- a/rules/pulpos/targets/pulp_cluster.mk +++ b/rules/pulpos/targets/pulp_cluster.mk @@ -78,5 +78,9 @@ ifndef gui vsim-flags = -c endif -run: $(TARGETS) - cd $(TARGET_BUILD_DIR); $(QUESTA) vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); source $(VSIM_PATH)/scripts/start.tcl" +run: +ifdef gui + $(QUESTA) vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); set APP $(TARGET_BUILD_DIR)/$(PULP_APP)/$(PULP_APP); source $(VSIM_PATH)/scripts/start.tcl" +else + $(QUESTA) vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); set APP $(TARGET_BUILD_DIR)/$(PULP_APP)/$(PULP_APP); source $(VSIM_PATH)/scripts/run_and_exit.tcl" +endif \ No newline at end of file