OSDN Git Service

configure: Fix cross-building for RISCV host (v5)
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 11 Jul 2023 16:56:09 +0000 (17:56 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 11 Jul 2023 16:56:09 +0000 (17:56 +0100)
Update $linux_arch to keep using the shared linux-headers/asm-riscv/
include path.

Fixes: e3e477c3bca0 ("configure: Fix cross-building for RISCV host")
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[rth: Missed v5, so now applying the diff between v4 and v5.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
configure

index dffd44c..26ec5e4 100755 (executable)
--- a/configure
+++ b/configure
@@ -1726,6 +1726,9 @@ if test "$linux" = "yes" ; then
   mips64)
     linux_arch=mips
     ;;
+  riscv32|riscv64)
+    linux_arch=riscv
+    ;;
   *)
     # For most CPUs the kernel architecture name and QEMU CPU name match.
     linux_arch="$cpu"