Skip to content

Commit 23542e3

Browse files
committed
build: gate defs.h inclusion behind a macro
Should allow us to use slrt.h in skinit.c when building for coreboot. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
1 parent bfca03a commit 23542e3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/skl/slrt.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef __SLRT_H__
22
#define __SLRT_H__
33

4+
#ifndef __COREBOOT__
45
#include <defs.h>
6+
#endif /* __COREBOOT__ */
57
#include <types.h>
68

79
struct slr_entry_hdr {
@@ -99,6 +101,8 @@ struct slr_entry_policy {
99101
struct slr_policy_entry policy_entries[];
100102
} __packed;
101103

104+
105+
#ifndef __COREBOOT__
102106
extern struct slr_table bootloader_data;
103107

104108
static inline void *end_of_slrt(void)
@@ -129,5 +133,6 @@ static inline void *next_entry_with_tag(void* _t, u16 tag)
129133
}
130134
return NULL;
131135
}
136+
#endif /* __COREBOOT__ */
132137

133138
#endif /* __SLRT_H__ */

0 commit comments

Comments
 (0)