Skip to content

Commit

Permalink
Merge pull request #148 from freimer/freimer/rpi
Browse files Browse the repository at this point in the history
Add build for RaspberryPi/ARM64
  • Loading branch information
mcred authored Nov 14, 2022
2 parents fbb4353 + 29cb0d7 commit e786ad7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ VERSION=`cat $(PWD)/VERSION`
VEXRUN_FILE := $(PWD)/utils/vexrun.jar
VEXRUN := java -jar $(VEXRUN_FILE)

.PHONY: build darwin windows linux s390x
.PHONY: build darwin windows linux rpi s390x

release: updateVersion darwin windows linux s390x
release: updateVersion darwin windows linux rpi s390x

windows:
GOOS=windows GOARCH=amd64 go build -o $(PWD)/bin/windows/lpm.exe $(PWD)/cmd/lpm/windows.go
Expand All @@ -18,6 +18,10 @@ linux:
GOOS=linux GOARCH=amd64 GOARM=7 go build -o $(PWD)/bin/linux/lpm $(PWD)/cmd/lpm/darwin.go
cd $(PWD)/bin/linux && zip lpm-$(VERSION)-linux.zip lpm

rpi:
GOOS=linux GOARCH=arm64 GOARM=7 go build -o $(PWD)/bin/rpi/lpm $(PWD)/cmd/lpm/darwin.go
cd $(PWD)/bin/rpi && zip lpm-$(VERSION)-rpi.zip lpm

s390x:
GOOS=linux GOARCH=s390x go build -o $(PWD)/bin/s390x/lpm $(PWD)/cmd/lpm/darwin.go
cd $(PWD)/bin/s390x && zip lpm-$(VERSION)-s390x.zip lpm
Expand Down

0 comments on commit e786ad7

Please sign in to comment.