install-riscv64-deps 550 B

1234567891011121314151617
  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.
  5. set -ex
  6. # Note: This requires riscv64 packages to be available via apt, which can be obtained
  7. # from the debian-ports repository.
  8. sudo apt-get install --yes --no-install-recommends \
  9. binutils-riscv64-linux-gnu \
  10. g++-riscv64-linux-gnu \
  11. libcap-dev:riscv64 \
  12. libwayland-dev:riscv64 \
  13. qemu-user-static
  14. # Add riscv64gc target to Rust
  15. rustup target add riscv64gc-unknown-linux-gnu