From f493b696a1c48cfdcfe1fbd4fc14fe1a1a976d2a Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 13 Dec 2014 22:20:09 +0100 Subject: [PATCH] Add Arch.aarch64 --- library/general/src/modules/Arch.rb | 10 ++++++++-- package/yast2.changes | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/library/general/src/modules/Arch.rb b/library/general/src/modules/Arch.rb index 939eb4fab..b31729f9b 100644 --- a/library/general/src/modules/Arch.rb +++ b/library/general/src/modules/Arch.rb @@ -63,7 +63,7 @@ def main # ************************************************************ # system architecture - # Returns full architecture type (one of i386, sparc, sparc64, mips, mips64, ppc, ppc64, alpha, s390_32, s390_64, ia64, x86_64) + # Returns full architecture type (one of i386, sparc, sparc64, mips, mips64, ppc, ppc64, alpha, s390_32, s390_64, ia64, x86_64, aarch64) # # @return [String] architecture def architecture @@ -179,7 +179,12 @@ def x86_64 architecture == "x86_64" end - # Returns general architecture type (one of sparc, mips, ppc, s390, i386, alpha, ia64, x86_64) + # true for all aarch64 (ARM64) architectures + def aarch64 + architecture == "aarch64" + end + + # Returns general architecture type (one of sparc, mips, ppc, s390, i386, alpha, ia64, x86_64, aarch64) # # @return [String] arch_short def arch_short @@ -510,6 +515,7 @@ def x11_setup_needed publish :function => :s390, :type => "boolean ()" publish :function => :ia64, :type => "boolean ()" publish :function => :x86_64, :type => "boolean ()" + publish :function => :aarch64, :type => "boolean ()" publish :function => :arch_short, :type => "string ()" publish :function => :board_compatible, :type => "string ()" publish :function => :board_mac, :type => "boolean ()" diff --git a/package/yast2.changes b/package/yast2.changes index 468f8f517..c947e2c90 100644 --- a/package/yast2.changes +++ b/package/yast2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 17 14:00:42 UTC 2014 - schwab@suse.de + +- Add Arch.aarch64 + ------------------------------------------------------------------- Thu Dec 4 09:51:50 UTC 2014 - jreidinger@suse.com