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

Suzuki K Poulose
2023-01-27T11:40:51Z

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

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
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