From 00b0653ce5ad8925c47a38e109cc3aa43905f767 Mon Sep 17 00:00:00 2001 From: Mark-PK Tsai Date: Wed, 13 Sep 2023 16:19:22 +0800 Subject: [PATCH] qemu_v8: set CFG_TEE_CORE_NB_CORE equal QEMU_SMP by default Currently qemu_armv8a use default CFG_TEE_CORE_NB_CORE = 4. User need to override it as below command to bring-up more than 4 cores. make run QEMU_SMP=6 CFG_TEE_CORE_NB_CORE=6 Set CFG_TEE_CORE_NB_CORE to $(QEMU_SMP) by default if QEMU_SMP is set to simplify the command as following. make run QEMU_SMP=6 Signed-off-by: Mark-PK Tsai Acked-by: Jerome Forissier --- qemu_v8.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qemu_v8.mk b/qemu_v8.mk index b66b0018..b3c370f4 100644 --- a/qemu_v8.mk +++ b/qemu_v8.mk @@ -353,6 +353,11 @@ ifeq ($(MEMTAG),y) OPTEE_OS_COMMON_FLAGS += CFG_MEMTAG=y endif +ifneq ($(QEMU_SMP),) +CFG_TEE_CORE_NB_CORE ?= $(QEMU_SMP) +OPTEE_OS_COMMON_FLAGS += CFG_TEE_CORE_NB_CORE=$(CFG_TEE_CORE_NB_CORE) +endif + OPTEE_OS_COMMON_FLAGS += $(OPTEE_OS_COMMON_FLAGS_SPMC_AT_EL_$(SPMC_AT_EL)) optee-os: optee-os-common