Skip to content

Commit

Permalink
riscv: plat-virt: Let CFG_RISCV_PLIC be build time configurable
Browse files Browse the repository at this point in the history
RISC-V has several standard interrupt controllers supported by QEMU
virtual platform. Thus, we allow CFG_RISCV_PLIC to be overridden at
build time while keeping the default value enabled.

Signed-off-by: Alvin Chang <[email protected]>
Reviewed-by: Yu-Chien Peter Lin <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
gagachang committed Feb 18, 2025
1 parent 873f5f6 commit 6f351b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/arch/riscv/plat-virt/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ CFG_TEE_CORE_NB_CORE ?= 1
CFG_NUM_THREADS ?= 1
$(call force,CFG_BOOT_SYNC_CPU,n)

# Interrupt controller
CFG_RISCV_PLIC ?= y

$(call force,CFG_RISCV_M_MODE,n)
$(call force,CFG_RISCV_S_MODE,y)
$(call force,CFG_RISCV_PLIC,y)
$(call force,CFG_SBI_CONSOLE,n)
$(call force,CFG_16550_UART,y)
$(call force,CFG_RISCV_TIME_SOURCE_RDTIME,y)
Expand Down

0 comments on commit 6f351b6

Please sign in to comment.