mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
Depthcharge currently includes vboot_nvstorage.h directly, instead of including only the API header files directly. Add 2nvstorage.h to the list of headers which can be requested impolitely. Also fix the definition of ARRAY_SIZE to match exactly what depthcharge and coreboot provide, so that the compiler does not get sad when it's included from both libpayload.h and 2common.h. BUG=chromium:789276 BRANCH=none TEST=make runtests; emerge-reef depthcharge coreboot Change-Id: Idc0390eaf813c3079df1676781e8bf5bc9b46450 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/802176 Reviewed-by: Shelley Chen <shchen@chromium.org>
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
/* Copyright (c) 2014 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.
|
|
*/
|
|
|
|
/* APIs between calling firmware and vboot_reference
|
|
*
|
|
* DO NOT INCLUDE THE HEADERS BELOW DIRECTLY! ONLY INCLUDE THIS FILE!
|
|
*
|
|
* Using vb2api.h as the single point of contact between calling firmware and
|
|
* vboot allows subsequent refactoring of vboot (renaming of headers, etc.)
|
|
* without churning other projects' source code.
|
|
*/
|
|
|
|
#ifndef VBOOT_VB2_API_H_
|
|
#define VBOOT_VB2_API_H_
|
|
|
|
/* Standard APIs */
|
|
#include "../2lib/include/2api.h"
|
|
|
|
/* SHA library */
|
|
#ifdef NEED_VB2_SHA_LIBRARY
|
|
#include "../2lib/include/2sha.h"
|
|
#endif
|
|
|
|
/*
|
|
* 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.
|
|
*
|
|
* TODO: Make cleaner APIs to this stuff.
|
|
*/
|
|
#ifdef NEED_VB20_INTERNALS
|
|
#include "../2lib/include/2nvstorage.h"
|
|
#include "../2lib/include/2nvstorage_fields.h"
|
|
#include "../2lib/include/2struct.h"
|
|
#include "../lib20/include/vb2_struct.h"
|
|
#endif
|
|
|
|
#endif /* VBOOT_VB2_API_H_ */
|