install-aarch64-deps 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env bash
  2. # Copyright 2021 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. sudo apt-get install --yes --no-install-recommends \
  7. gcc-aarch64-linux-gnu \
  8. ipxe-qemu \
  9. libavcodec-dev:arm64 \
  10. libavutil-dev:arm64 \
  11. libc-dev:arm64 \
  12. libcap-dev:arm64 \
  13. libdbus-1-dev:arm64 \
  14. libdrm-dev:arm64 \
  15. libepoxy-dev:arm64 \
  16. libssl-dev:arm64 \
  17. libswscale-dev:arm64 \
  18. libva-dev:arm64 \
  19. libwayland-dev:arm64 \
  20. libxext-dev:arm64 \
  21. qemu-efi-aarch64 \
  22. qemu-system-aarch64 \
  23. qemu-user-static
  24. rustup target add aarch64-unknown-linux-gnu
  25. # Generate a cross file for meson to compile for aarch64
  26. sudo mkdir -p -m 0755 /usr/local/share/meson/cross
  27. sudo tee /usr/local/share/meson/cross/aarch64 >/dev/null <<EOF
  28. [binaries]
  29. c = '/usr/bin/aarch64-linux-gnu-gcc'
  30. cpp = '/usr/bin/aarch64-linux-gnu-g++'
  31. ar = '/usr/bin/aarch64-linux-gnu-ar'
  32. strip = '/usr/bin/aarch64-linux-gnu-strip'
  33. objcopy = '/usr/bin/aarch64-linux-gnu-objcopy'
  34. ld= '/usr/bin/aarch64-linux-gnu-ld'
  35. pkgconfig = '/usr/bin/aarch64-linux-gnu-pkg-config'
  36. [properties]
  37. [host_machine]
  38. system = 'linux'
  39. cpu_family = 'aarch64'
  40. cpu = 'arm64'
  41. endian = 'little'
  42. EOF