diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2010-12-13 20:02:23 +0000 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2010-12-13 20:02:23 +0000 |
commit | 475916ddbfb0ba9fed7f17a2613736551912e3f9 (patch) | |
tree | 1d902f5800e485eed450a3a00459f4256db77bae /src/lib | |
parent | c4369536da601a02b23cb936c16e54c0485ec21e (diff) | |
download | coreboot-475916ddbfb0ba9fed7f17a2613736551912e3f9.tar.xz |
Compile cbmem.c instead of including it in romstage,
and do that only if resume is done.
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Patrick Georgi <patrick@georgi-clan.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6174 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Makefile.inc | 1 | ||||
-rw-r--r-- | src/lib/cbmem.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index ed52ea940c..d5e76ade1d 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -15,6 +15,7 @@ ramstage-y += lzma.c ramstage-y += gcc.c ramstage-y += cbmem.c +romstage-$(CONFIG_HAVE_ACPI_RESUME) += cbmem.c romstage-y += uart8250.c romstage-y += memset.c romstage-y += memcpy.c diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c index c758240d64..5417ab8c49 100644 --- a/src/lib/cbmem.c +++ b/src/lib/cbmem.c @@ -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 |