Fixes #511, add support for new supervisor image for x86 with quark cpu

boards.

Change-Type: minor
Signed-off-by: Trong Nghia Nguyen <nghiant2710@gmail.com>
This commit is contained in:
Trong Nghia Nguyen 2017-10-25 00:50:32 +07:00 committed by Pablo Carranza Velez
parent 89607fa2bc
commit 01c39f33b5
6 changed files with 23 additions and 1 deletions

View File

@ -115,6 +115,8 @@ FROM resin/i386-node:6.5-slim as i386-node-base
RUN echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-start && chmod +x /usr/bin/cross-build-start \
&& echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-end && chmod +x /usr/bin/cross-build-end
FROM i386-node-base as i386-nlp-node-base
# Build nodejs dependencies
FROM $ARCH-node-base as node
ARG ARCH

View File

@ -32,7 +32,7 @@ if (_.isEmpty(tag)) {
process.exit(1);
}
const supportedArchitectures = [ 'amd64', 'rpi', 'aarch64', 'armel', 'i386', 'armv7hf' ];
const supportedArchitectures = [ 'amd64', 'rpi', 'aarch64', 'armel', 'i386', 'armv7hf', 'i386-nlp' ];
if (!_.isEmpty(arch) && !_.includes(supportedArchitectures, arch)) {
console.error('Invalid architecture ' + arch);
process.exit(1);

View File

@ -23,6 +23,9 @@ case "$ARCH" in
'aarch64')
export TARGET_MACHINE='generic-armv8'
;;
'i386-nlp')
export TARGET_MACHINE='i386-nlp'
;;
esac
export SOURCE_DIR=/source

View File

@ -0,0 +1,5 @@
#@TYPE: Machine
#@NAME: common_pc
#@DESCRIPTION: Machine configuration for x86 with quark cpu boards.
require conf/machine/include/tune-i586-nlp.inc

View File

@ -72,6 +72,14 @@ jobs:
PUSH_IMAGES: "true"
STAGING_API_ENDPOINT: https://api.resinstaging.io
PRODUCTION_API_ENDPOINT: https://api.resin.io
i386-nlp:
<<: *defaults
environment:
DOCKER_USERNAME: travisciresin
ARCH: i386-nlp
PUSH_IMAGES: "true"
STAGING_API_ENDPOINT: https://api.resinstaging.io
PRODUCTION_API_ENDPOINT: https://api.resin.io
armel:
<<: *defaults
environment:
@ -114,3 +122,4 @@ workflows:
- rpi
- armv7hf
- aarch64
- i386-nlp

View File

@ -12,6 +12,9 @@ case "$ARCH" in
'i386')
export GOARCH=386
;;
'i386-nlp')
export GOARCH=386
;;
'rpi')
export GOARCH=arm
export GOARM=6