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))