Skip to content

Commit

Permalink
Build: Fix QEMU_MC_EXTOPT and QEMU_CPU_EXTOPT options passing issue
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Jul 25, 2024
1 parent e1fe4cf commit ac121e2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions SoC/evalsoc/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,21 @@ RISCV_TUNE ?= $(word 3, $(CORE_ARCH_ABI))
# - QEMU_CPU_EXTOPT is used to pass extra options to qemu -cpu cpu options for evalsoc,
# please dont pass any extra , to this make variable, you can pass such
# as QEMU_CPU_EXTOPT=vlen=512 but not pass QEMU_CPU_EXTOPT=,vlen=512
QEMU_MACHINE ?= nuclei_evalsoc,download=$(DOWNLOAD),$(QEMU_MC_EXTOPT)
QEMU_MACHINE ?= nuclei_evalsoc,download=$(DOWNLOAD)
# You can pass customized soc configuration here
ifneq ($(QEMU_SOCCFG),)
QEMU_MACHINE := $(QEMU_MACHINE),soc-cfg=$(NUCLEI_SDK_SOC)/$(QEMU_SOCCFG)
endif
ifneq ($(QEMU_MC_EXTOPT),)
QEMU_MACHINE := $(QEMU_MACHINE),$(QEMU_MC_EXTOPT)
endif

QEMU_ARCHEXT ?= ${ARCH_EXT}
QEMU_CPU ?= nuclei-$(CORE),ext=$(QEMU_ARCHEXT),$(QEMU_CPU_EXTOPT)
QEMU_CPU ?= nuclei-$(CORE),ext=$(QEMU_ARCHEXT)
ifneq ($(QEMU_CPU_EXTOPT),)
QEMU_CPU := $(QEMU_CPU),$(QEMU_CPU_EXTOPT)
endif

ifneq ($(SEMIHOST),)
QEMU_OPT += -semihosting
endif
Expand Down

0 comments on commit ac121e2

Please sign in to comment.