diff options
author | Joel Kitching <kitching@google.com> | 2020-02-14 15:58:26 +0800 |
---|---|---|
committer | Joel Kitching <kitching@chromium.org> | 2020-02-18 05:54:40 +0000 |
commit | c3e9ddd146d0ab57277e1b83dca1fdf1671e9950 (patch) | |
tree | d7d86e8c6656fefa39e9bfe1a85c0c499aad29da | |
parent | 462a2efd2fb2f0effcb56580f3e6e7c14a17d23a (diff) | |
download | vboot-c3e9ddd146d0ab57277e1b83dca1fdf1671e9950.tar.gz |
vboot: create vb2_internals_please_do_not_use.h
Create vb2_internals_please_do_not_use.h to replace
NEED_VB20_INTERNALS.
NEED_VB20_INTERNALS will be removed in a separate
commit in order to give coreboot code a chance to
switch over to using the new header file.
BUG=b:124141368, chromium:957880
TEST=make clean && make runtests
BRANCH=none
Change-Id: Ide3f69d45e4ebbd2b12d03ccffd1e3d8bb68aa5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2055600
Commit-Queue: Joel Kitching <kitching@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r-- | firmware/include/vb2_internals_please_do_not_use.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/firmware/include/vb2_internals_please_do_not_use.h b/firmware/include/vb2_internals_please_do_not_use.h new file mode 100644 index 00000000..af72d5c0 --- /dev/null +++ b/firmware/include/vb2_internals_please_do_not_use.h @@ -0,0 +1,26 @@ +/* Copyright 2020 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. + * + * Allows the caller to peek into vboot2 data structures, by including a + * specific set of internal header files. Including this header means the + * caller is broken and should be fixed. + * + * TODO(chromium:957880): The existence of this header is a bug, and it should + * be removed when it is no longer used. + */ + +#ifndef VBOOT_REFERENCE_VB2_INTERNALS_PLEASE_DO_NOT_USE_H_ +#define VBOOT_REFERENCE_VB2_INTERNALS_PLEASE_DO_NOT_USE_H_ + +/* + * Coreboot should not need access to vboot2 internals. But right now it does. + * At least this forces it to do so through a relatively narrow hole so vboot2 + * refactoring can continue. + * + * Please do not rip this into a wider hole, or expect this hole to continue. + */ +#include "../2lib/include/2misc.h" /* for vb2_get_sd() */ +#include "../2lib/include/2struct.h" /* for vb2_shared_data struct */ + +#endif /* VBOOT_REFERENCE_VB2_INTERNALS_PLEASE_DO_NOT_USE_H_ */ |