[PATCH 2/2] add initial spport for aarch64 as we only plan to support UEFI this should be enough

Vratislav Podzimek vpodzime at redhat.com
Tue Oct 22 07:44:44 UTC 2013


On Mon, 2013-10-21 at 17:07 -0500, Dennis Gilmore wrote:
> Signed-off-by: Dennis Gilmore <dennis at ausil.us>
> ---
>  blivet/arch.py     | 10 ++++++++++
>  blivet/platform.py |  2 ++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/blivet/arch.py b/blivet/arch.py
> index cbbf5e6..b16b3fc 100644
> --- a/blivet/arch.py
> +++ b/blivet/arch.py
> @@ -162,6 +162,14 @@ def getPPCMacBook():
>  
>      return False
>  
> +def isAARCH64():
> +    """
> +    :return: True if the hardware supports Aarch64, False otherwise.
> +    :rtype: boolean
> +
> +    """
> +    return os.uname()[4] == 'aarch64'
> +
>  def getARMMachine():
>      """
>      :return: The ARM processor variety type, or None if not ARM.
> @@ -325,6 +333,8 @@ def getArch():
>          return 'ppc'
>      elif isPPC(bits=64):
>          return 'ppc64'
> +    elif arch.isAARCH64():
> +        return 'aarch64'
>      elif isAlpha():
>          return 'alpha'
>      elif isARM():
> diff --git a/blivet/platform.py b/blivet/platform.py
> index 185d82e..87dcdd3 100644
> --- a/blivet/platform.py
> +++ b/blivet/platform.py
> @@ -381,6 +381,8 @@ def getPlatform():
>              return EFI()
>      elif arch.isX86():
>          return X86()
> +    elif arch.isAARCH64():
> +        return EFI()
>      elif arch.isARM():
>          armMachine = arch.getARMMachine()
>          if armMachine == "omap":
Pushed to master. Do you want it to be pushed to the f20-branch as well?

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list