aboutsummaryrefslogtreecommitdiff
path: root/payloads/coreinfo/coreboot_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/coreinfo/coreboot_module.c')
-rw-r--r--payloads/coreinfo/coreboot_module.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/coreinfo/coreboot_module.c b/payloads/coreinfo/coreboot_module.c
index e5615b3322..16a63c544d 100644
--- a/payloads/coreinfo/coreboot_module.c
+++ b/payloads/coreinfo/coreboot_module.c
@@ -20,6 +20,8 @@
#include <coreboot_tables.h>
#include "coreinfo.h"
+#ifdef CONFIG_MODULE_COREBOOT
+
#define MAX_MEMORY_COUNT 5
static struct {
@@ -252,3 +254,10 @@ struct coreinfo_module coreboot_module = {
.init = coreboot_module_init,
.redraw = coreboot_module_redraw,
};
+
+#else
+
+struct coreinfo_module coreboot_module = {
+};
+
+#endif