aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-10-28 10:38:07 +0800
committerSong Gao <gaosong@loongson.cn>2024-11-02 15:20:41 +0800
commite8f8303195bc8f11a078613c66844cac98501276 (patch)
tree2ed23ed512bc0662fae541395219b9f888fd4cfa /scripts
parent6edd2a9bec902bf8c4f7a7a819bf5a9a7ae0948b (diff)
downloadqemu-e8f8303195bc8f11a078613c66844cac98501276.zip
qemu-e8f8303195bc8f11a078613c66844cac98501276.tar.gz
qemu-e8f8303195bc8f11a078613c66844cac98501276.tar.bz2
linux-headers: Add unistd_64.h
since 6.11, unistd.h includes header file unistd_64.h directly on some platforms, here add unistd_64.h on these platforms. Affected platforms are ARM64, LoongArch64 and Riscv. Otherwise there will be compiling error such as: linux-headers/asm/unistd.h:3:10: fatal error: asm/unistd_64.h: No such file or directory #include <asm/unistd_64.h> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Acked-by: Song Gao <gaosong@loongson.cn> Message-Id: <20241028023809.1554405-2-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-linux-headers.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index c34ac64..203f48d 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -163,6 +163,7 @@ EOF
fi
if [ $arch = arm64 ]; then
cp "$hdrdir/include/asm/sve_context.h" "$output/linux-headers/asm-arm64/"
+ cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-arm64/"
fi
if [ $arch = x86 ]; then
cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/"
@@ -185,6 +186,11 @@ EOF
fi
if [ $arch = riscv ]; then
cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
+ cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-riscv/"
+ cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-riscv/"
+ fi
+ if [ $arch = loongarch ]; then
+ cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-loongarch/"
fi
done
arch=