diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-12-04 14:08:54 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-01-05 08:49:29 +0100 |
commit | 4cffef13dc1feb985ada1943b3aa24ec51a1578e (patch) | |
tree | 78ba8fdd76004f6eddbae0417371e2e3dcfe2176 /arch/riscv | |
parent | 9f542bd7394888fe5e70fe72c377cc095771d460 (diff) | |
download | barebox-4cffef13dc1feb985ada1943b3aa24ec51a1578e.tar.gz barebox-4cffef13dc1feb985ada1943b3aa24ec51a1578e.tar.xz |
RISC-V: cpu: fix build with CONFIG_RISCV_EXCEPTIONS=n
Building without CONFIG_RISCV_EXCEPTIONS causes a compile error, because
of a definition mismatch. data_abort_mask is a no-op without exception
support, but interrupt.c defines it as a different type of symbol. Skip
interrupt.c compilation to fix the build error.
Reported-by: Yann Sionneau <ysionneau@kalray.eu>
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.barebox.org/20211204130854.1624493-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/cpu/Makefile | 2 |
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 |