summaryrefslogtreecommitdiffstats
path: root/arch/riscv/cpu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/cpu/Makefile')
-rw-r--r--arch/riscv/cpu/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/cpu/Makefile b/arch/riscv/cpu/Makefile
index 717baaaaa7..d79bafc6f1 100644
--- a/arch/riscv/cpu/Makefile
+++ b/arch/riscv/cpu/Makefile
@@ -2,6 +2,8 @@
obj-y += core.o time.o
obj-$(CONFIG_HAS_DMA) += dma.o
+ifeq ($(CONFIG_RISCV_EXCEPTIONS),y)
obj-pbl-$(CONFIG_RISCV_M_MODE) += mtrap.o
obj-pbl-$(CONFIG_RISCV_S_MODE) += strap.o
obj-pbl-y += interrupts.o
+endif