Skip to content

Commit 46adaaf

Browse files
committed
includes: include all gnu-efi includes at one place.
Signed-off-by: Peter Jones <[email protected]>
1 parent 1a6f9b8 commit 46adaaf

File tree

8 files changed

+4
-13
lines changed

8 files changed

+4
-13
lines changed

include/errors.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef SHIM_ERRORS_H
44
#define SHIM_ERRORS_H
55

6-
#include <efierr.h>
7-
86
#ifndef EFI_INCOMPATIBLE_VERSION
97
#define EFI_INCOMPATIBLE_VERSION EFIERR(25)
108
#endif

include/guid.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef SHIM_GUID_H
44
#define SHIM_GUID_H
55

6-
#include <efi.h>
7-
86
extern EFI_GUID BDS_GUID;
97
extern EFI_GUID GV_GUID;
108
extern EFI_GUID SIG_DB;

include/ip4config2.h

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#ifndef SHIM_IP4CONFIG2_H
1010
#define SHIM_IP4CONFIG2_H
1111

12-
#include <efiip.h>
13-
1412
typedef struct _EFI_IP4_CONFIG2_PROTOCOL EFI_IP4_CONFIG2_PROTOCOL;
1513

1614

include/ip6config.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#ifndef SHIM_IP6CONFIG_H
99
#define SHIM_IP6CONFIG_H
1010

11-
#include <efiip.h>
12-
1311
typedef struct _EFI_IP6_CONFIG_PROTOCOL EFI_IP6_CONFIG_PROTOCOL;
1412

1513
///

include/tpm.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef SHIM_TPM_H
44
#define SHIM_TPM_H
55

6-
#include <efilib.h>
7-
86
#define TPM_ALG_SHA 0x00000004
97

108
EFI_STATUS tpm_log_event(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 pcr,

shim.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include <efi.h>
3030
#include <efilib.h>
3131
#undef uefi_call_wrapper
32+
#include <efierr.h>
33+
#include <efiip.h>
3234

3335
#include <stddef.h>
3436
#include <stdint.h>
@@ -146,7 +148,6 @@
146148
#include "include/tpm.h"
147149
#include "include/ucs2.h"
148150
#include "include/variables.h"
149-
#include "include/sbat.h"
150151

151152
#include "version.h"
152153

version.c.in

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// SPDX-License-Identifier: BSD-2-Clause-Patent
22

3+
#include <efi.h>
4+
35
#include "version.h"
46

57
CHAR8 shim_version[] __attribute__((section (".data.ident"))) =

version.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef _SHIM_VERSION_H
44
#define _SHIM_VERSION_H 1
55

6-
#include <efi.h>
7-
86
extern CHAR8 shim_version[];
97

108
#endif /* SHIM_VERSION_H */

0 commit comments

Comments
 (0)