Add support aarch64 architecture
Support to run scripts in aarch64 Host Linux.
Tested: execute the scripts changed in this commit in Aarch64 Host
Ubuntu OS and check they can execute successfully
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: Idde23fbd09c5000c710f4f6d88793fefbb0cb04c
diff --git a/build-jenkins.sh b/build-jenkins.sh
index d234a16..2ef4129 100755
--- a/build-jenkins.sh
+++ b/build-jenkins.sh
@@ -113,6 +113,10 @@
docker_base=""
tini_arch="amd64"
;;
+ "aarch64")
+ docker_base=""
+ tini_arch="arm64"
+ ;;
*)
echo "Unsupported system architecture(${ARCH}) found for docker image"
exit 1
diff --git a/build-rootfs-size-docker.sh b/build-rootfs-size-docker.sh
index 4243ab9..cde66e6 100755
--- a/build-rootfs-size-docker.sh
+++ b/build-rootfs-size-docker.sh
@@ -21,6 +21,9 @@
"x86_64")
DOCKER_BASE=""
;;
+ "aarch64")
+ DOCKER_BASE=""
+ ;;
*)
echo "Unsupported system architecture(${ARCH}) found for docker image"
exit 1
diff --git a/build-setup.sh b/build-setup.sh
index 2bd116b..9750b5f 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -123,6 +123,9 @@
"x86_64")
DOCKER_BASE=""
;;
+ "aarch64")
+ DOCKER_BASE=""
+ ;;
*)
echo "Unsupported system architecture(${ARCH}) found for docker image"
exit 1
diff --git a/openpower-build-setup.sh b/openpower-build-setup.sh
index 6785f45..1ca5f25 100755
--- a/openpower-build-setup.sh
+++ b/openpower-build-setup.sh
@@ -35,6 +35,9 @@
"x86_64")
DOCKER_BASE=""
;;
+ "aarch64")
+ DOCKER_BASE=""
+ ;;
*)
echo "Unsupported system architecture(${ARCH}) found for docker image"
exit 1
diff --git a/qemu-build.sh b/qemu-build.sh
index 9f07cb7..6005128 100755
--- a/qemu-build.sh
+++ b/qemu-build.sh
@@ -56,6 +56,9 @@
"x86_64")
DOCKER_BASE=""
;;
+ "aarch64")
+ DOCKER_BASE=""
+ ;;
*)
echo "Unsupported system architecture(${ARCH}) found for docker image"
exit 1
diff --git a/run-qemu-robot-test.sh b/run-qemu-robot-test.sh
index a5c032b..3c2f407 100755
--- a/run-qemu-robot-test.sh
+++ b/run-qemu-robot-test.sh
@@ -81,6 +81,9 @@
"x86_64")
QEMU_ARCH="x86_64-linux"
;;
+ "aarch64")
+ QEMU_ARCH="arm64-linux"
+ ;;
*)
echo "Unsupported system architecture(${ARCH}) found for docker image"
exit 1
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index e79e9d4..8fbdc68 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -675,6 +675,8 @@
docker_base = "ppc64le/"
elif arch == "x86_64":
docker_base = ""
+elif arch == "aarch64":
+ docker_base = ""
else:
print(
f"Unsupported system architecture({arch}) found for docker image",