mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
a6f8814c7b
Add a framework for bindgen scripts. This will be filled in when each binding is added in upcoming separate commits. BUG=b:218388029 TEST=None Change-Id: I62363b49d92ceb5b54700589c2329daace7181b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3339804 Reviewed-by: Dennis Kempin <denniskempin@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
29 lines
651 B
Bash
Executable file
29 lines
651 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=(
|
|
)
|
|
|
|
for d in "${dirs[@]}"; do
|
|
echo "bindgen ${d}"
|
|
"${d}"/bindgen.sh || die "Failed to generate bindings for ${d}"
|
|
done
|
|
|
|
echo "Done!"
|