]> git.proxmox.com Git - mirror_ovs.git/commitdiff
tests/atlocal.in: Add check for aarch64 Architecture
authorMalvika Gupta <Malvika.Gupta@arm.com>
Mon, 30 Mar 2020 12:54:01 +0000 (20:54 +0800)
committerWilliam Tu <u9012063@gmail.com>
Thu, 9 Apr 2020 21:35:17 +0000 (14:35 -0700)
This patch adds a condition to check if the CPU architecture is aarch64. If the
condition evaluates to true, $IS_ARM64 variable is set to 'yes'. For all other
architectures, this variable is set to 'no'.

Reviewed-by: Yanqin Wei <Yanqin.wei@arm.com>
Signed-off-by: Malvika Gupta <malvika.gupta@arm.com>
Signed-off-by: William Tu <u9012063@gmail.com>
tests/atlocal.in

index 1dc7cd5d087af9fc5ee42461365b1af11171b1ac..02e2dc57f292e3e1941fe485808abdda40a013b8 100644 (file)
@@ -111,6 +111,16 @@ if test "$IS_WIN32" = yes; then
     export PYTHONLEGACYWINDOWSSTDIO
 fi
 
+# Check for CPU architecture
+case `uname -m` in
+aarch64)
+    IS_ARM64="yes"
+    ;;
+*)
+    IS_ARM64="no"
+    ;;
+esac
+
 # Check whether to run IPv6 tests.
 $PYTHON3 -c '
 import errno