Skip to content

Commit

Permalink
[#1169] Use proper 32-bit ARM architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Nov 24, 2023
1 parent 64444e3 commit 9117a55
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions rakelib/40_dist.rake
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,23 @@ STORK_VERSION = stork_version

def get_arch()
arch = ENV["STORK_GOARCH"] || ARCH
if !ENV["STORK_GOARM"].nil?
arch = "#{arch}-armv#{ENV["STORK_GOARM"]}"
arm_version_raw = ENV["STORK_GOARM"]
if !arm_version_raw.nil?
arm_version = arm_version_raw.to_i
# The above architecture suffixes were not tested on BSD systems.
# They may not be suitable for this operating system family.
case arm_version
when 0
fail "STORK_GOARM must be a number, got: #{arm_version_raw}"
when 5
arch = "armel"
when 6..7
arch = "armhf"
when 8
puts "STORK_GOARCH is ignored for 64-bit ARM (armv8)"
else
fail "Unsupported STORK_GOARM value: #{arm_version_raw}"
end
end
arch
end
Expand Down

0 comments on commit 9117a55

Please sign in to comment.