Skip to contentSkip to conversation

configure: Add linux header compile support for LoongArch

PATCH In review Bibo Mao 2 participants 2 messages Jan 16, 2024

lore
Share & tools
lore

Bibo Mao

author
#0 lore raw

PATCH v2 1/1 configure: Add linux header compile support for LoongArch

When compiling qemu with system KVM mode for LoongArch, header files in directory linux-headers/asm-loongarch should be used firstly. Otherwise it fails to find kvm.h on system with old glibc, since latest kernel header files are not installed.

This patch adds linux_arch definition for LoongArch system so that header files in directory linux-headers/asm-loongarch can be included.

Fixes 714b03c125 ("target/loongarch: Add loongarch kvm into meson build")

---
Changes in v2:
1. Add Fixes label for commit 714b03c125

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 21ab9a64e9..3d8e24ae01 100755
@@ -445,6 +445,7 @@ case "$cpu" in
   loongarch*)
     cpu=loongarch64
     host_arch=loongarch64
+    linux_arch=loongarch
     ;;
 
   mips64*)

base-commit: 977542ded7e6b28d2bc077bcda24568c716e393c

Signature · 1 line
2.39.3
#1 lore raw
Quoted 8 lines · Bibo Mao

When compiling qemu with system KVM mode for LoongArch, header files in directory linux-headers/asm-loongarch should be used firstly. Otherwise it fails to find kvm.h on system with old glibc, since latest kernel header files are not installed.

This patch adds linux_arch definition for LoongArch system so that header files in directory linux-headers/asm-loongarch can be included.

Quoted 6 lines
Fixes 714b03c125 ("target/loongarch: Add loongarch kvm into meson build")

---
Changes in v2:
1. Add Fixes label for commit 714b03c125

Thanks Bibo, no need to respin for tags such 'Fixes' or 'Reviewed-by', git tools include them directly when applying patches.

Since you haven't Cc'ed Song Gao, I'm queuing this via my tree.

Regards,

Phil.

Quoted 3 lines
---
  configure | 1 +
  1 file changed, 1 insertion(+)