mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
3b6c7295e3
Refactor udmabuf support out from virtio_gpu into the shared vm_memory target, so that can be used for vvu. BUG=b:201745804 TEST=compiles TEST=./tools/bindgen-all-the-things Change-Id: I2944f0cb8c75e4320400bfb9f7026dc1efe0c12b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3716339 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: David Stevens <stevensd@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
38 lines
832 B
Bash
Executable file
38 lines
832 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Regenerate all bindgen-generated Rust bindings in the crosvm tree.
|
|
#
|
|
# This script expects to be executed from a full Chrome OS checkout so it has access to the kernel
|
|
# and other repositories. Note that it must be run from OUTSIDE the chroot.
|
|
|
|
set -e
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
source tools/impl/bindgen-common.sh
|
|
|
|
die() {
|
|
echo "$@"
|
|
exit 1
|
|
}
|
|
|
|
dirs=(
|
|
io_uring
|
|
kernel_loader
|
|
kvm_sys
|
|
media/ffmpeg
|
|
media/libvda
|
|
net_sys
|
|
vfio_sys
|
|
virtio_sys
|
|
vm_memory
|
|
)
|
|
|
|
for d in "${dirs[@]}"; do
|
|
echo "bindgen ${d}"
|
|
"${d}"/bindgen.sh || die "Failed to generate bindings for ${d}"
|
|
done
|
|
|
|
echo "Done!"
|