mirror of
https://github.com/esphome/esphome.git
synced 2024-12-20 16:18:49 +01:00
19 lines
370 B
Plaintext
19 lines
370 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# the architecture to build
|
||
|
declare BUILD_ARCH
|
||
|
|
||
|
echo "BUILD_ARCH: ${BUILD_ARCH}"
|
||
|
|
||
|
if [[ ${BUILD_ARCH} = "amd64" ]]; then
|
||
|
echo "No qemu required..."
|
||
|
exit 0
|
||
|
fi
|
||
|
if [[ ${BUILD_ARCH} = "i386" ]]; then
|
||
|
echo "No qemu required..."
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
echo "Installing qemu..."
|
||
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|