mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +00:00
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:
parent
89607fa2bc
commit
01c39f33b5
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
5
base-image/build/conf/machine/i386-nlp.conf
Normal file
5
base-image/build/conf/machine/i386-nlp.conf
Normal 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
|
@ -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
|
||||
|
@ -12,6 +12,9 @@ case "$ARCH" in
|
||||
'i386')
|
||||
export GOARCH=386
|
||||
;;
|
||||
'i386-nlp')
|
||||
export GOARCH=386
|
||||
;;
|
||||
'rpi')
|
||||
export GOARCH=arm
|
||||
export GOARM=6
|
||||
|
Loading…
Reference in New Issue
Block a user