mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
fe5be7e78d
After CL:4712775, crosvm doesn't call UserDataAuth's D-Bus methods. This CL hence removes Rust interface of UserDataAuth's D-Bus method and proto definitions used by UserDataAuth. BUG=b:229122701 TEST=./update_bindings.sh TEST=emerge-<BOARD> crosvm Change-Id: Idc79b07614a50bd17ff99c124e501a88eeda2c1b Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4776924 Commit-Queue: Momoko Hattori <momohatt@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
27 lines
800 B
Bash
Executable file
27 lines
800 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.
|
|
|
|
STUB_DIR=$(dirname "$0")
|
|
SYSTEM_API_DIR="$HOME/chromiumos/src/platform2/system_api"
|
|
|
|
if ! [ -e "$SYSTEM_API_DIR" ]; then
|
|
echo "This script must be run from a ChromeOS checkout and inside cros_sdk."
|
|
fi
|
|
|
|
# The system_api build.rs will generate bindings in $SYSTEM_API_DIR/src
|
|
(cd "$SYSTEM_API_DIR" && cargo build)
|
|
|
|
FILES=(
|
|
"src/bindings/client/org_chromium_spaced.rs"
|
|
"src/bindings/client/org_chromium_vtpm.rs"
|
|
"src/protos/spaced.rs"
|
|
"src/protos/vtpm_interface.rs"
|
|
)
|
|
|
|
for FILE in "${FILES[@]}"; do
|
|
TARGET_DIR=$(dirname "$STUB_DIR/$FILE")
|
|
mkdir -p "$TARGET_DIR"
|
|
cp "$SYSTEM_API_DIR/$FILE" "$TARGET_DIR"
|
|
done
|