xref: /aosp_15_r20/external/crosvm/tools/install-riscv64-deps (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1#!/usr/bin/env bash
2# Copyright 2023 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5set -ex
6
7# Note: This requires riscv64 packages to be available via apt, which can be obtained
8# from the debian-ports repository.
9sudo apt-get install --yes --no-install-recommends \
10  binutils-riscv64-linux-gnu \
11  g++-riscv64-linux-gnu \
12  libcap-dev:riscv64 \
13  libwayland-dev:riscv64 \
14  qemu-user-static
15
16# Add riscv64gc target to Rust
17rustup target add riscv64gc-unknown-linux-gnu
18