mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
e3259f6319
Loading 32-bit images is needed for kvm-unit-tests. BUG=b:233317135 TEST=boots, new unit tests Change-Id: I6ba63255e0e2993f3735ef81489f64dbd0bb6374 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3764465 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Auto-Submit: Steven Richman <srichman@google.com> Tested-by: Steven Richman <srichman@google.com> Commit-Queue: Steven Richman <srichman@google.com>
23 lines
701 B
Bash
Executable file
23 lines
701 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 kernel_loader bindgen bindings.
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
source tools/impl/bindgen-common.sh
|
|
|
|
bindgen_generate \
|
|
--allowlist-type='Elf32_Ehdr' \
|
|
--allowlist-type='Elf32_Phdr' \
|
|
--allowlist-type='Elf64_Ehdr' \
|
|
--allowlist-type='Elf64_Phdr' \
|
|
--allowlist-var='.+' \
|
|
"${BINDGEN_LINUX_X86_HEADERS}/include/linux/elf.h" \
|
|
-- \
|
|
-isystem "${BINDGEN_LINUX_X86_HEADERS}/include" \
|
|
| replace_linux_int_types \
|
|
> kernel_loader/src/elf.rs
|