Skip to content

Commit

Permalink
Merge pull request #309 from chef/jsinha/add_arm64_mapping
Browse files Browse the repository at this point in the history
Map arm64 architecture to aarch64
  • Loading branch information
tas50 authored Mar 9, 2020
2 parents 9868755 + de09130 commit c795650
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ esac

# normalize the architecture we detected
case $machine in
"arm64"|"aarch64")
machine="aarch64"
;;
"x86_64"|"amd64"|"x64")
machine="x86_64"
;;
Expand Down
1 change: 0 additions & 1 deletion lib/mixlib/install/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class InvalidOptions < ArgumentError; end

SUPPORTED_ARCHITECTURES = %w{
aarch64
arm64
armv7l
i386
powerpc
Expand Down
2 changes: 2 additions & 0 deletions lib/mixlib/install/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def normalize_architecture(architecture)
case architecture
when "amd64"
"x86_64"
when "arm64"
"aarch64"
when "i86pc", "i686"
"i386"
when "sun4u", "sun4v"
Expand Down

0 comments on commit c795650

Please sign in to comment.