Skip to content

Commit

Permalink
configure: Fix cross-building for RISCV host (v5)
Browse files Browse the repository at this point in the history
Update $linux_arch to keep using the shared linux-headers/asm-riscv/
include path.

Fixes: e3e477c ("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>
  • Loading branch information
philmd authored and rth7680 committed Jul 11, 2023
1 parent e3e477c commit 887cba8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 887cba8

Please sign in to comment.