AArch64 support: api, cli, controllers, drivers

Enable new architecture 'aarch64' ('arm64' on Ubuntu).
Tested with DEB driver.

Closes-bug: 1638635

Change-Id: I9761322020837186c109c18e849128791ab909d8
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
This commit is contained in:
Alexandru Avadanii 2016-10-27 21:51:10 +02:00
parent c46465c325
commit fd5b8c0359
4 changed files with 7 additions and 3 deletions

View File

@ -73,7 +73,8 @@ class RepositoryApi(object):
:param config: the configuration
:param repotype: the kind of repository(deb, yum, etc)
:param repoarch: the architecture of repository (x86_64 or i386)
:param repoarch: the architecture of repository
(x86_64, i386 or aarch64)
"""
context = config if isinstance(config, Context) else Context(config)
return cls(RepositoryController.load(context, repotype, repoarch))

View File

@ -56,7 +56,7 @@ class BaseRepoCommand(BaseCommand):
'-a',
'--arch',
type=str,
choices=["x86_64", "i386"],
choices=["x86_64", "i386", "aarch64"],
metavar='ARCHITECTURE',
default="x86_64",
help='The target architecture.')

View File

@ -45,7 +45,8 @@ class RepositoryController(object):
:param context: the context
:param driver_name: the name of required driver
:param repoarch: the architecture of repository (x86_64 or i386)
:param repoarch: the architecture of repository
(x86_64, i386 or aarch64)
"""
if cls._drivers is None:
cls._drivers = stevedore.ExtensionManager(

View File

@ -48,10 +48,12 @@ _OPERATORS_MAPPING = {
}
_ARCHITECTURES = {
"aarch64": "arm64",
"x86_64": "amd64",
"i386": "i386",
"source": "Source",
"amd64": "x86_64",
"arm64": "aarch64",
}
_PRIORITIES = {