From 6723d1110f6daf93be93db74d5ea9f6b64c9bce5 Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Wed, 28 Sep 2022 10:55:04 +0200 Subject: [PATCH] Add ARM architecture to OpenZFS buildsystem Tested-by: Rich Ercolani Tested-by: Sebastian Gottschall Reviewed-by: Brian Behlendorf Signed-off-by: Tino Reichardt Closes #13741 --- config/always-arch.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/always-arch.m4 b/config/always-arch.m4 index f7090a4826..9f413eeddf 100644 --- a/config/always-arch.m4 +++ b/config/always-arch.m4 @@ -22,6 +22,9 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [ aarch64*) TARGET_CPU=aarch64 ;; + armv*) + TARGET_CPU=arm + ;; sparc64) TARGET_CPU=sparc64 ;; @@ -31,7 +34,8 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [ esac AM_CONDITIONAL([TARGET_CPU_AARCH64], test $TARGET_CPU = aarch64) - AM_CONDITIONAL([TARGET_CPU_X86_64], test $TARGET_CPU = x86_64) + AM_CONDITIONAL([TARGET_CPU_X86_64], test $TARGET_CPU = x86_64) AM_CONDITIONAL([TARGET_CPU_POWERPC], test $TARGET_CPU = powerpc) AM_CONDITIONAL([TARGET_CPU_SPARC64], test $TARGET_CPU = sparc64) + AM_CONDITIONAL([TARGET_CPU_ARM], test $TARGET_CPU = arm) ])