mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
Set GOARM separately for each architecture. Add changelog entries.
This commit is contained in:
parent
0125e86a6b
commit
b17bd5bc27
@ -1,4 +1,5 @@
|
||||
|
||||
* Set GOARM separately for each architecture [Pablo]
|
||||
* Add armv5 (armel) build [Trong]
|
||||
* Add OOM protection for the supervisor container, openvpn and connmand [Praneeth]
|
||||
|
||||
# v1.3.2
|
||||
|
5
Makefile
5
Makefile
@ -18,12 +18,15 @@ MIXPANEL_TOKEN = bananasbananas
|
||||
|
||||
ifeq ($(ARCH),rpi)
|
||||
GOARCH = arm
|
||||
GOARM = 6
|
||||
endif
|
||||
ifeq ($(ARCH),armv7hf)
|
||||
GOARCH = arm
|
||||
GOARM = 7
|
||||
endif
|
||||
ifeq ($(ARCH),armel)
|
||||
GOARCH = arm
|
||||
GOARM = 5
|
||||
endif
|
||||
ifeq ($(ARCH),i386)
|
||||
GOARCH = 386
|
||||
@ -80,7 +83,7 @@ go-builder:
|
||||
gosuper: go-builder
|
||||
-mkdir -p bin
|
||||
-docker rm --volumes -f resin_build_gosuper_$(JOB_NAME) || true
|
||||
docker run --name resin_build_gosuper_$(JOB_NAME) -v $(shell pwd)/gosuper/bin:/usr/src/app/bin -e USER_ID=$(shell id -u) -e GROUP_ID=$(shell id -g) -e GOARCH=$(GOARCH) resin/go-supervisor-builder:$(SUPERVISOR_VERSION)
|
||||
docker run --name resin_build_gosuper_$(JOB_NAME) -v $(shell pwd)/gosuper/bin:/usr/src/app/bin -e USER_ID=$(shell id -u) -e GROUP_ID=$(shell id -g) -e GOARCH=$(GOARCH) -e GOARM=$(GOARM) resin/go-supervisor-builder:$(SUPERVISOR_VERSION)
|
||||
docker rm --volumes -f resin_build_gosuper_$(JOB_NAME)
|
||||
mv gosuper/bin/linux_$(GOARCH)/gosuper bin/gosuper
|
||||
|
||||
|
@ -2,8 +2,6 @@ FROM golang:1.5.1
|
||||
|
||||
ENV GOOS linux
|
||||
ENV GOPATH /usr/src/app
|
||||
# Set an explicit GOARM of 5 for maximum compatibility
|
||||
ENV GOARM 5
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user