Merge "AArch64 support: api, cli, controllers, drivers"

This commit is contained in:
Jenkins 2016-12-13 15:33:57 +00:00 committed by Gerrit Code Review
commit 485618fd5f
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 = {