Add support for aarch64

Change-Type: minor
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2017-06-01 11:20:15 -07:00
parent 639aa0aece
commit ffce794987
4 changed files with 15 additions and 2 deletions

2
.gitignore vendored
View File

@ -17,4 +17,4 @@ Dockerfile.build.*
Dockerfile.runtime.*
!Dockerfile.build.template
!Dockerfile.runtime.template
build
/build/

View File

@ -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

View File

@ -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

View 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"