summaryrefslogtreecommitdiff
path: root/buildscripts/packager.py
diff options
context:
space:
mode:
authorZakhar Kleyman <zakhar.kleyman@mongodb.com>2020-12-02 12:01:08 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-07 23:33:05 +0000
commit1f0c52dd09fe3ecfca374d16326e4e782e3b037a (patch)
tree750a04499da7a1d5491502367ebb1461a422bd08 /buildscripts/packager.py
parent58ddbe61d0de1cb53773486b1aa343194fc3da06 (diff)
downloadmongo-1f0c52dd09fe3ecfca374d16326e4e782e3b037a.tar.gz
SERVER-53037 fix packager script for rhel8 arm64
Diffstat (limited to 'buildscripts/packager.py')
-rwxr-xr-xbuildscripts/packager.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/buildscripts/packager.py b/buildscripts/packager.py
index 8592839b6cb..43a1d54b5e0 100755
--- a/buildscripts/packager.py
+++ b/buildscripts/packager.py
@@ -41,7 +41,7 @@ import tempfile
import time
# The MongoDB names for the architectures we support.
-ARCH_CHOICES = ["x86_64", "arm64", "s390x"]
+ARCH_CHOICES = ["x86_64", "arm64", "aarch64", "s390x"]
# Made up names for the flavors of distribution we package for.
DISTROS = ["suse", "debian", "redhat", "ubuntu", "amazon", "amazon2"]
@@ -207,6 +207,10 @@ class Distro(object):
return "s390x"
elif arch.endswith("86"):
return "i686"
+ elif arch == "arm64":
+ return "arm64"
+ elif arch == "aarch64":
+ return "aarch64"
return "x86_64"
else:
raise Exception("BUG: unsupported platform?")
@@ -326,7 +330,7 @@ class Distro(object):
"suse11" for suse, etc.
"""
# Community builds only support amd64
- if arch not in ['x86_64', 'ppc64le', 's390x', 'arm64']:
+ if arch not in ['x86_64', 'ppc64le', 's390x', 'arm64', 'aarch64']:
raise Exception("BUG: unsupported architecture (%s)" % arch)
if re.search("(suse)", self.dname):