Compile cbmem.c instead of including it in romstage,
[coreboot.git] / src / lib / cbmem.c
index c758240d648d307ea401d64e4cc266f449d975b0..5417ab8c49f4f893674e0b5c5d75f624dfdb4a04 100644 (file)
@@ -48,6 +48,13 @@ void __attribute__((weak)) set_cbmem_toc(struct cbmem_entry * x)
 {
        /* do nothing, this should be called by chipset to save TOC in NVRAM */
 }
+#else
+
+struct cbmem_entry *__attribute__((weak)) get_cbmem_toc(void)
+{
+       printk(BIOS_WARNING, "WARNING: you need to define get_cbmem_toc() for your chipset\n");
+       return NULL;
+}
 
 #endif