mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
fb512a85b2
This allows cargo to build for android. A new dev container is built to include this. To allow us to build the new container, we had to remove the ffmpeg dependencies for armhf which fail to install in the current version of debian. BUG=b:349907813 TEST=dev_container presubmit clippy_android Change-Id: I7fbcd460e53fbd339a28b451a91b0722d34257b8 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5689659 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com>
39 lines
1.1 KiB
Bash
Executable file
39 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2021 The ChromiumOS Authors
|
|
# 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 \
|
|
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
|