mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
00cbeb7d4c
The crate is only used by cros_async, which has already been copied to crosvm. The old source location will eventually move to ChromeOS. See go/future-of-sys-util for details BUG=b:22320646 TEST=presubmit Change-Id: Icf3522497cb4e8c04a4687403466b781f0d7a9ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3534501 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Dennis Kempin <denniskempin@google.com>
34 lines
732 B
Bash
Executable file
34 lines
732 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.
|
|
|
|
set -e
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
source tools/impl/bindgen-common.sh
|
|
|
|
die() {
|
|
echo "$@"
|
|
exit 1
|
|
}
|
|
|
|
dirs=(
|
|
io_uring
|
|
devices/src/virtio/gpu
|
|
kernel_loader
|
|
kvm_sys
|
|
libvda
|
|
)
|
|
|
|
for d in "${dirs[@]}"; do
|
|
echo "bindgen ${d}"
|
|
"${d}"/bindgen.sh || die "Failed to generate bindings for ${d}"
|
|
done
|
|
|
|
echo "Done!"
|