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

Provide ARMv6l binaries #5525

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ endif

ALL_TARGETS += linux_386 \
linux_amd64 \
linux_arm \
linux_armel \
linux_armhf \
linux_arm64 \
windows_386 \
windows_amd64
Expand Down Expand Up @@ -83,9 +84,17 @@ pkg/linux_amd64/nomad: $(SOURCE_FILES) ## Build Nomad for linux/amd64
-tags "$(GO_TAGS)" \
-o "$@"

pkg/linux_arm/nomad: $(SOURCE_FILES) ## Build Nomad for linux/arm
pkg/linux_armel/nomad: $(SOURCE_FILES) ## Build Nomad for linux/armel (Pi 1, Zero)
@echo "==> Building $@ with tags $(GO_TAGS)..."
@CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc-5 \
@CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=6 CC=arm-linux-gnueabi-gcc-5 \
go build \
-ldflags $(GO_LDFLAGS) \
-tags "$(GO_TAGS)" \
-o "$@"

pkg/linux_armhf/nomad: $(SOURCE_FILES) ## Build Nomad for linux/armhf (Pi 2, 3)
@echo "==> Building $@ with tags $(GO_TAGS)..."
@CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabihf-gcc-5 \
go build \
-ldflags $(GO_LDFLAGS) \
-tags "$(GO_TAGS)" \
Expand Down
3 changes: 3 additions & 0 deletions scripts/vagrant-linux-priv-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ apt-get install -y \
# Install ARM build utilities
apt-get install -y \
binutils-aarch64-linux-gnu \
binutils-arm-linux-gnueabi \
binutils-arm-linux-gnueabihf \
gcc-5-aarch64-linux-gnu \
gcc-5-arm-linux-gnueabi \
gcc-5-arm-linux-gnueabihf \
gcc-5-multilib-arm-linux-gnueabi \
gcc-5-multilib-arm-linux-gnueabihf

# Install Windows build utilities
Expand Down