mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +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>
18 lines
559 B
Bash
Executable file
18 lines
559 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 virtio-gpu udmabuf bindgen bindings.
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
source tools/impl/bindgen-common.sh
|
|
|
|
bindgen_generate \
|
|
--allowlist-type='udmabuf_.*' \
|
|
--allowlist-var="UDMABUF_.*" \
|
|
"${BINDGEN_LINUX}/include/uapi/linux/udmabuf.h" \
|
|
| replace_linux_int_types | rustfmt \
|
|
> vm_memory/src/udmabuf_bindings.rs
|