33 lines
914 B
Bash
33 lines
914 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
CROSVM_VERSION=d2b6a64dd31c92a284a905c0f2483d0b222b1220
|
|
git clone --single-branch -b for-mesa-ci --no-checkout https://gitlab.freedesktop.org/tomeu/crosvm.git /platform/crosvm
|
|
pushd /platform/crosvm
|
|
git checkout "$CROSVM_VERSION"
|
|
git submodule update --init
|
|
|
|
VIRGLRENDERER_VERSION=2a5fb800c6b0ce15ad37c2c698635e3e2d27b37c
|
|
pushd third_party/virglrenderer
|
|
git checkout "$VIRGLRENDERER_VERSION"
|
|
popd
|
|
|
|
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
bindgen \
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
--root /usr/local \
|
|
$EXTRA_CARGO_ARGS
|
|
|
|
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
--locked \
|
|
--features 'default-no-sandbox gpu x virgl_renderer virgl_renderer_next' \
|
|
--path . \
|
|
--root /usr/local \
|
|
$EXTRA_CARGO_ARGS
|
|
|
|
popd
|
|
|
|
rm -rf $PLATFORM2_ROOT $AOSP_EXTERNAL_ROOT/minijail $THIRD_PARTY_ROOT/adhd $THIRD_PARTY_ROOT/rust-vmm /platform/crosvm
|