crosvm/tools/bindgen-all-the-things
Alexandre Courbot 82ce97e6ac media: remove local libva and cros-codecs crates
Now that we have switched to the external versions of these crates,
remove our old local copies.

BUG=b:262824148
TEST=presubmit

Change-Id: I993e56831e0f5e895c036c8b40e8181f4577ae27
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4518094
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
2023-05-17 00:54:25 +00:00

38 lines
808 B
Bash
Executable file

#!/usr/bin/env bash
# Copyright 2022 The ChromiumOS Authors
# 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 ChromeOS 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!"