[RFC kvmtool 02/31] script: update_headers: Ignore missing architectures

From: Suzuki K Poulose
Date: Fri Jan 27 2023 - 06:40:51 EST


Ignore missing architectures for header updates, for use with
older kernels.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
---
util/update_headers.sh | 1 +
1 file changed, 1 insertion(+)

diff --git a/util/update_headers.sh b/util/update_headers.sh
index 789e2a42..bdfb798c 100755
--- a/util/update_headers.sh
+++ b/util/update_headers.sh
@@ -48,6 +48,7 @@ copy_optional_arch () {

for arch in arm64 mips powerpc riscv x86
do
+ [ -f $LINUX_ROOT/arch/${arch} ] || continue;
case "$arch" in
arm64) KVMTOOL_PATH=arm/aarch64
copy_optional_arch asm/sve_context.h ;;
--
2.34.1