crosvm/tools/install-armhf-deps
Dennis Kempin 0fcc7ace5a Uprev rust toolchain to 1.56.1
Two new clippy fixes are affecting us, but will be easy to fix in
a follow-up.
Fixed the dev-container so we can create a new version with the new
toolchain.

BUG=b:210037151
TEST=Kokoro

Change-Id: I9ac4d84aff72b1ee5219d6dab0a88667ca6c5951
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3328954
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2021-12-10 02:34:50 +00:00

40 lines
1.1 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 \
g++-arm-linux-gnueabihf \
gcc-arm-linux-gnueabihf \
libc-dev:armhf \
libcap-dev:armhf \
libdbus-1-dev:armhf \
libdrm-dev:armhf \
libepoxy-dev:armhf \
libssl-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