From 44727dea7ba41c608385e49395d9e41179a4efa7 Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Wed, 17 Apr 2024 16:47:01 -0700 Subject: [PATCH] Add EXTRA_SIM_OUT_NAME --- common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.mk b/common.mk index b31ddafc..84f9d498 100644 --- a/common.mk +++ b/common.mk @@ -28,6 +28,7 @@ EXTRA_SIM_CXXFLAGS ?= EXTRA_SIM_LDFLAGS ?= EXTRA_SIM_SOURCES ?= EXTRA_SIM_REQS ?= +EXTRA_SIM_OUT_NAME ?= ifneq ($(ASPECTS), ) comma = , @@ -361,7 +362,7 @@ get_loadarch_flag = +loadarch=$(subst mem.elf,loadarch,$(1)) endif # get the output path base name for simulation outputs, First arg is the binary -get_sim_out_name = $(output_dir)/$(call get_out_name,$(1)) +get_sim_out_name = $(output_dir)/$(call get_out_name,$(1))$(if $(EXTRA_SIM_OUT_NAME),.$(EXTRA_SIM_OUT_NAME),) # sim flags that are common to run-binary/run-binary-fast/run-binary-debug get_common_sim_flags = $(SIM_FLAGS) $(EXTRA_SIM_FLAGS) $(SEED_FLAG) $(call get_loadmem_flag,$(1)) $(call get_loadarch_flag,$(1))