Skip to content

Commit 98d68cf

Browse files
committed
Makefile: enable 64-bit ARM builds on Linux
1 parent 888e7bc commit 98d68cf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# don't need to bother with make.
44

55
.PHONY: geth geth-cross evm all test travis-test-with-coverage xgo clean
6-
.PHONY: geth-linux geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-386 geth-linux-amd64
6+
.PHONY: geth-linux geth-linux-386 geth-linux-amd64
7+
.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
78
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
89
.PHONY: geth-windows geth-windows-386 geth-windows-amd64
910
.PHONY: geth-android geth-ios
@@ -37,7 +38,7 @@ geth-linux-amd64: xgo
3738
@echo "Linux amd64 cross compilation done:"
3839
@ls -l $(GOBIN)/geth-linux-* | grep amd64
3940

40-
geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7
41+
geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
4142
@echo "Linux ARM cross compilation done:"
4243
@ls -l $(GOBIN)/geth-linux-* | grep arm
4344

@@ -56,6 +57,11 @@ geth-linux-arm-7: xgo
5657
@echo "Linux ARMv7 cross compilation done:"
5758
@ls -l $(GOBIN)/geth-linux-* | grep arm-7
5859

60+
geth-linux-arm64: xgo
61+
build/env.sh $(GOBIN)/xgo --go=$(GO) --buildmode=$(MODE) --dest=$(GOBIN) --deps=$(CROSSDEPS) --targets=linux/arm64 -v $(shell build/flags.sh) ./cmd/geth
62+
@echo "Linux ARM64 cross compilation done:"
63+
@ls -l $(GOBIN)/geth-linux-* | grep arm64
64+
5965
geth-darwin: geth-darwin-386 geth-darwin-amd64
6066
@echo "Darwin cross compilation done:"
6167
@ls -l $(GOBIN)/geth-darwin-*

0 commit comments

Comments
 (0)