diff --git a/event_log.c b/event_log.c index 483697c..fa55ebd 100644 --- a/event_log.c +++ b/event_log.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include "tpmlib/tpm.h" #include "tpmlib/tpm2_constants.h" diff --git a/include/slrt.h b/include/slrt/slrt.h similarity index 96% rename from include/slrt.h rename to include/slrt/slrt.h index 4c7be1d..4d8ef5d 100644 --- a/include/slrt.h +++ b/include/slrt/slrt.h @@ -1,7 +1,9 @@ #ifndef __SLRT_H__ #define __SLRT_H__ +#ifndef __COREBOOT__ #include +#endif /* __COREBOOT__ */ #include /* SLR defined bootloaders */ @@ -97,6 +99,7 @@ struct slr_entry_amd_info { u16 reserved[3]; } __packed; +#ifndef __COREBOOT__ /* Secure Kernel Loader */ extern struct slr_table bootloader_data; @@ -128,5 +131,6 @@ static inline void *next_entry_with_tag(void* _t, u16 tag) } return NULL; } +#endif /* __COREBOOT__ */ #endif /* __SLRT_H__ */ diff --git a/main.c b/main.c index 9425d7a..e4d4fe6 100644 --- a/main.c +++ b/main.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include