Skip to content

Commit

Permalink
qemu_v8: set CFG_TEE_CORE_NB_CORE equal QEMU_SMP by default
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
PeikanTsai authored and jforissier committed Sep 13, 2023
1 parent 6b7da31 commit 00b0653
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qemu_v8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00b0653

Please sign in to comment.