Skip to content

Commit

Permalink
flashy_arm64 build
Browse files Browse the repository at this point in the history
Summary: Compile arm64 version of flashy

Test Plan:
Checkout D61731216, build flashy ephemeral:

```
$ fbpkg build -E openbmc.utils.flashy --yes --configerator-path ~/configerator/
```

Ensure arm64 flashy binary is present
```
$ cd $(mktemp -d) && fbpkg fetch openbmc.utils.flashy:c84f8ad
...
$ file flashy_arm64
flashy_arm64: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=1AdKZP4L9rfwwmxcE3C3/pY_LLowZsUX8QlcymBEz/yAXuELHk-8td4irRAKp1/M9d2EazNavpmMXz27q3x, stripped
```

Reviewed By: doranand

Differential Revision: D61730815

fbshipit-source-id: 7e5328f2f3604733f1577803444d105876e18afb
  • Loading branch information
kawmarco authored and facebook-github-bot committed Sep 6, 2024
1 parent 39c1f01 commit e1fa335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/flashy/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ set -e
cd "$(dirname "$0")"
rm -rf build
GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-w -s" -gcflags=all="-l" -o build/flashy
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -gcflags=all="-l" -o build/flashy_arm64

0 comments on commit e1fa335

Please sign in to comment.