mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-29 15:44:13 +00:00
Add support for aarch64
Change-Type: minor Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
639aa0aece
commit
ffce794987
2
.gitignore
vendored
2
.gitignore
vendored
@ -17,4 +17,4 @@ Dockerfile.build.*
|
||||
Dockerfile.runtime.*
|
||||
!Dockerfile.build.template
|
||||
!Dockerfile.runtime.template
|
||||
build
|
||||
/build/
|
||||
|
5
Makefile
5
Makefile
@ -20,7 +20,7 @@ endif
|
||||
|
||||
DISABLE_CACHE = 'false'
|
||||
|
||||
ARCH = rpi# rpi/amd64/i386/armv7hf/armel
|
||||
ARCH = rpi# rpi/amd64/i386/armv7hf/armel/aarch64
|
||||
|
||||
DEPLOY_REGISTRY =
|
||||
|
||||
@ -71,6 +71,9 @@ endif
|
||||
ifeq ($(ARCH),amd64)
|
||||
GOARCH = amd64
|
||||
endif
|
||||
ifeq ($(ARCH),aarch64)
|
||||
GOARCH = arm64
|
||||
endif
|
||||
SUPERVISOR_DIND_MOUNTS := -v $$(pwd)/../../:/resin-supervisor -v $$(pwd)/config.json:/mnt/conf/config.json -v $$(pwd)/config/env:/usr/src/app/config/env -v $$(pwd)/config/localenv:/usr/src/app/config/localenv
|
||||
ifeq ($(OS), Linux)
|
||||
SUPERVISOR_DIND_MOUNTS := ${SUPERVISOR_DIND_MOUNTS} -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /bin/kmod:/bin/kmod
|
||||
|
@ -33,6 +33,9 @@ case "$ARCH" in
|
||||
'armel')
|
||||
machine='generic-armv5'
|
||||
;;
|
||||
'aarch64')
|
||||
machine='generic-armv8'
|
||||
;;
|
||||
esac
|
||||
SSTATE_DIR="$JENKINS_PERSISTENT_WORKDIR/$machine/sstate"
|
||||
# Make sure shared directories are in place
|
||||
|
7
base-image/build/conf/machine/generic-armv8.conf
Normal file
7
base-image/build/conf/machine/generic-armv8.conf
Normal file
@ -0,0 +1,7 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Generic armv8 machine
|
||||
#@DESCRIPTION: Machine configuration for armv8 based boards
|
||||
|
||||
require conf/machine/include/arm/arch-armv8.inc
|
||||
|
||||
DEFAULTTUNE = "aarch64"
|
Loading…
x
Reference in New Issue
Block a user