crosvm/tools/install-armhf-deps
Dennis Kempin c4ec996103 Add new dev container and install-deps scripts
The new container just provides a standard debian box with a
rust toolchain.
Installation of dependencies has been extracted into scripts
which can also be used to set up a machine for development.

This will replace the current ./ci/ containers.

BUG=b:199950887,b:199950423
TEST=./tools/dev_container ./tools/run_tests

Change-Id: I832bc5b129246923df937a34614b4d74955304dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3221781
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
2021-10-15 22:12:02 +00:00

24 lines
745 B
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 /usr/share/meson/debcrossgen --arch armhf \
-o /usr/local/share/meson/cross/armhf