build/deploy: Update QEMU to speed up emulated builds

QEMU v5 has quite a few improvements over v4, and the speed
difference when emulating arm is quite noticible.

We tested this with, and without, our single-core limitation
patch and have not been able to reproduce the stability
issues we were seeing in v4 so the patch was removed in
this release.

Change-type: patch
Connects-to: https://github.com/balena-io/balena-io/issues/2340
Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding 2021-01-29 08:41:17 -05:00
parent 023fc57914
commit 9636985ee7
No known key found for this signature in database
GPG Key ID: 2AD73EC1FB4865E3

View File

@ -19,7 +19,7 @@ import type * as Dockerode from 'dockerode';
import { getBalenaSdk, stripIndent } from './lazy';
import Logger = require('./logger');
export const QEMU_VERSION = 'v4.0.0+balena2';
export const QEMU_VERSION = 'v5.2.0+balena1';
export const QEMU_BIN_NAME = 'qemu-execve';
export function qemuPathInContext(context: string) {
@ -96,7 +96,7 @@ export function installQemu(arch: string) {
const installStream = fs.createWriteStream(qemuPath);
const qemuArch = balenaArchToQemuArch(arch);
const fileVersion = QEMU_VERSION.replace(/^v/, '').replace('+', '.');
const fileVersion = QEMU_VERSION.replace('+', '.');
const urlFile = encodeURIComponent(
`qemu-${fileVersion}-${qemuArch}.tar.gz`,
);