From 800b0c08ed8bc53a3d32a26d4350b07103283165 Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Fri, 5 Jan 2024 10:52:53 +0100 Subject: [PATCH] support LLVM for RISCV64 Signed-off-by: Axel Heider --- standalone-kernel/compile_kernel.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/standalone-kernel/compile_kernel.sh b/standalone-kernel/compile_kernel.sh index 35726184..23f81078 100755 --- a/standalone-kernel/compile_kernel.sh +++ b/standalone-kernel/compile_kernel.sh @@ -40,7 +40,17 @@ case $INPUT_ARCH in esac ;; RISCV64) - extra_config="${extra_config} -DRISCV64=TRUE" + case $INPUT_COMPILER in + gcc) + extra_config="${extra_config} -DRISCV64=TRUE" + ;; + llvm) + extra_config="${extra_config} -DTRIPLE=riscv64-unknown-elf" + ;; + *) + echo "Unknown input compiler" + exit 1 + esac ;; X64) # no config needed