From: Malvika Gupta <[email protected]>

From: Malvika Gupta <[email protected]>

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 <[email protected]>
Signed-off-by: Malvika Gupta <[email protected]>
---
 tests/atlocal.in | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/atlocal.in b/tests/atlocal.in
index 1dc7cd5d0..02e2dc57f 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -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
-- 
2.17.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to