mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Make architecture checking more stringent when installing emulators
Also change the documentation to an armv7hf. Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
6070ee0f83
commit
a357405f3a
@ -1569,7 +1569,7 @@ Examples:
|
||||
|
||||
$ balena build
|
||||
$ balena build ./source/
|
||||
$ balena build --deviceType raspberrypi3 --arch armhf --emulated
|
||||
$ balena build --deviceType raspberrypi3 --arch armv7hf --emulated
|
||||
$ balena build --application MyApp ./source/
|
||||
$ balena build --docker '/var/run/docker.sock'
|
||||
$ balena build --dockerHost my.docker.host --dockerPort 2376 --ca ca.pem --key key.pem --cert cert.pem
|
||||
|
@ -66,7 +66,7 @@ module.exports =
|
||||
|
||||
$ balena build
|
||||
$ balena build ./source/
|
||||
$ balena build --deviceType raspberrypi3 --arch armhf --emulated
|
||||
$ balena build --deviceType raspberrypi3 --arch armv7hf --emulated
|
||||
$ balena build --application MyApp ./source/
|
||||
$ balena build --docker '/var/run/docker.sock'
|
||||
$ balena build --dockerHost my.docker.host --dockerPort 2376 --ca ca.pem --key key.pem --cert cert.pem
|
||||
|
@ -104,5 +104,6 @@ installQemu = (arch) ->
|
||||
|
||||
balenaArchToQemuArch = (arch) ->
|
||||
switch arch
|
||||
when 'armv7hf', 'rpi' then 'arm'
|
||||
else arch
|
||||
when 'armv7hf', 'rpi', 'armhf' then 'arm'
|
||||
when 'aarch64' then 'aarch64'
|
||||
else throw new Error("Cannot install emulator for architecture #{arch}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user