diff mbox series

opensbi: force gcc toolchain

Message ID 20260122153050.341395-1-thomas.perrot@bootlin.com
State New
Headers show
Series opensbi: force gcc toolchain | expand

Commit Message

Thomas Perrot Jan. 22, 2026, 3:30 p.m. UTC
From: Thomas Perrot <thomas.perrot@bootlin.com>

OpenSBI requires the gcc toolchain to build correctly. Set TOOLCHAIN
explicitly to prevent build failures when using alternative
toolchains.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
---
 meta/recipes-bsp/opensbi/opensbi_1.8.1.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-bsp/opensbi/opensbi_1.8.1.bb b/meta/recipes-bsp/opensbi/opensbi_1.8.1.bb
index 0a9652c2831e..52d7b38ff2ba 100644
--- a/meta/recipes-bsp/opensbi/opensbi_1.8.1.bb
+++ b/meta/recipes-bsp/opensbi/opensbi_1.8.1.bb
@@ -15,6 +15,8 @@  TARGET_DBGSRC_DIR = "/share/opensbi/*/generic/firmware/"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
+TOOLCHAIN = "gcc"
+
 RISCV_SBI_FW_TEXT_START ??= "0x80000000"
 EXTRA_OEMAKE += "REPRODUCIBLE=y CROSS_COMPILE=${HOST_PREFIX} ELFFLAGS="${LDFLAGS}" PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_TEXT_START=${RISCV_SBI_FW_TEXT_START}"
 EXTRA_OEMAKE:append:toolchain-clang = " LLVM=y"