#!/usr/bin/env bash # Copyright 2021 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. set -ex sudo apt-get install --yes --no-install-recommends \ gcc-arm-linux-gnueabihf \ libavcodec-dev:armhf \ libavutil-dev:armhf \ libc-dev:armhf \ libcap-dev:armhf \ libdbus-1-dev:armhf \ libdrm-dev:armhf \ libepoxy-dev:armhf \ libssl-dev:armhf \ libswscale-dev:armhf \ libudev-dev:armhf \ libva-dev:armhf \ libwayland-dev:armhf \ libxext-dev:armhf rustup target add armv7-unknown-linux-gnueabihf # Generate a cross file for meson to compile for armhf sudo mkdir -p -m 0755 /usr/local/share/meson/cross sudo tee /usr/local/share/meson/cross/armhf >/dev/null <