Path: blob/main/hypervisor/src/gunyah/gunyah_sys/bindgen.sh
5394 views
#!/usr/bin/env bash1# Copyright 2023 The ChromiumOS Authors2# Use of this source code is governed by a BSD-style license that can be3# found in the LICENSE file.45# Regenerate gunyah_sys bindgen bindings.67set -euo pipefail8# assume in hypervisor/src/gunyah/gunyah_sys9cd "$(dirname "${BASH_SOURCE[0]}")/../../../.."1011source tools/impl/bindgen-common.sh1213# use local copy until gunyah.h is available in chromium monorepo14bindgen_generate \15--blocklist-item='__kernel.*' \16--blocklist-item='__BITS_PER_LONG' \17--blocklist-item='__FD_SETSIZE' \18--blocklist-item='_?IOC.*' \19"hypervisor/src/gunyah/gunyah_sys/gunyah.h" \20-- \21-isystem "${BINDGEN_LINUX_ARM64_HEADERS}/include" \22| replace_linux_int_types \23> hypervisor/src/gunyah/gunyah_sys/bindings.rs242526