Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.py to support arm64 #2289

Merged
merged 2 commits into from
Apr 27, 2020
Merged

Update build.py to support arm64 #2289

merged 2 commits into from
Apr 27, 2020

Conversation

povlhp
Copy link
Contributor

@povlhp povlhp commented Feb 11, 2020

Currently arm64 aka aarch64 results in armhf binaries. Not ARM64 binaries.
Modern arm chips (like those in TV boxes) does not support armhf instruction set. exec format error.

The first change will detect aarch64 and set arch to arm64, which is supported.

Cleaned up code around line 540 to store arch in fullarch for later use in if statement below that sets GOARM. Line 543 would overwrite the value tested in the if statement in 546 and down.
According to this: https://github.com/golang/go/wiki/GoArm GOARM should not be used for arm64

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Sign CLA (if not already signed)

Currently arm64 aka aarch64 results in armhf binaries. Not ARM64 binaries. 
Modern arm chips (like those in TV boxes) does not support armhf instruction set.  exec format error.

The first change will detect aarch64 and set arch to arm64, which is supported.

Cleaned up code  around line 540 to store arch in fullarch for later use in if statement below that sets GOARM. Line 543 would overwrite the value tested in the if statement in 546 and down.
According to this: https://github.com/golang/go/wiki/GoArm GOARM should not be used for arm64
@povlhp
Copy link
Contributor Author

povlhp commented Feb 13, 2020

Same style patch applied to Chronograf.

@timhallinflux timhallinflux added this to the 1.5.6 milestone Apr 21, 2020
@timhallinflux
Copy link
Contributor

thanks @povlhp -- appreciate your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants