2021-12-07 23:01:50 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-13 17:55:17 +00:00
|
|
|
# Copyright 2022 The ChromiumOS Authors
|
2021-12-07 23:01:50 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2022-09-13 19:37:28 +00:00
|
|
|
|
2021-12-07 23:01:50 +00:00
|
|
|
# Regenerate virtio-gpu udmabuf bindgen bindings.
|
|
|
|
|
|
|
|
set -euo pipefail
|
2022-06-13 08:10:42 +00:00
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
2021-12-07 23:01:50 +00:00
|
|
|
|
|
|
|
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 \
|
2022-06-13 08:10:42 +00:00
|
|
|
> vm_memory/src/udmabuf_bindings.rs
|