crosvm/tools/install-armhf-deps
Alexandre Courbot d036e9f225 tools: install-deps: add ffmpeg libraries as dependencies
Add the ffmpeg libraries needed by the ffmpeg decoder device backend and
bump the dev_container and testvm to include them.

BUG=b:169295147
TEST=./tools/install-deps
TEST=./tools/dev_container

Change-Id: Ifc07b9599403aa1ed18a96067ada1fa2efa6e13c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3685682
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-06-07 11:44:20 +00:00

43 lines
1.2 KiB
Bash
Executable file

#!/usr/bin/env bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# 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 \
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 <<EOF
[binaries]
c = '/usr/bin/arm-linux-gnueabihf-gcc'
cpp = '/usr/bin/arm-linux-gnueabihf-g++'
ar = '/usr/bin/arm-linux-gnueabihf-ar'
strip = '/usr/bin/arm-linux-gnueabihf-strip'
objcopy = '/usr/bin/arm-linux-gnueabihf-objcopy'
ld= '/usr/bin/arm-linux-gnueabihf-ld'
pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
[properties]
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'arm7hlf'
endian = 'little'
EOF