Skip to content

Commit bdbfe57

Browse files
karalabeobscuren
authored andcommitted
[release/1.4.11] Makefile: support building for the MIPS64 platforms (#2682)
(cherry picked from commit 4c2cc32)
1 parent c4e4baf commit bdbfe57

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Makefile

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

55
.PHONY: geth geth-cross evm all test clean
6-
.PHONY: geth-linux geth-linux-386 geth-linux-amd64
6+
.PHONY: geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
77
.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
88
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
99
.PHONY: geth-windows geth-windows-386 geth-windows-amd64
@@ -37,7 +37,7 @@ geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios
3737
@echo "Full cross compilation done:"
3838
@ls -ld $(GOBIN)/geth-*
3939

40-
geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm
40+
geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 geth-linux-mips64le
4141
@echo "Linux cross compilation done:"
4242
@ls -ld $(GOBIN)/geth-linux-*
4343

@@ -75,6 +75,16 @@ geth-linux-arm64:
7575
@echo "Linux ARM64 cross compilation done:"
7676
@ls -ld $(GOBIN)/geth-linux-* | grep arm64
7777

78+
geth-linux-mips64:
79+
build/env.sh go run build/ci.go xgo --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64 -v ./cmd/geth
80+
@echo "Linux MIPS64 cross compilation done:"
81+
@ls -ld $(GOBIN)/geth-linux-* | grep mips64
82+
83+
geth-linux-mips64le:
84+
build/env.sh go run build/ci.go xgo --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64le -v ./cmd/geth
85+
@echo "Linux MIPS64le cross compilation done:"
86+
@ls -ld $(GOBIN)/geth-linux-* | grep mips64le
87+
7888
geth-darwin: geth-darwin-386 geth-darwin-amd64
7989
@echo "Darwin cross compilation done:"
8090
@ls -ld $(GOBIN)/geth-darwin-*

0 commit comments

Comments
 (0)