From de53bdf56978c59842bb0754a0855ffc639929fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 31 Dec 2014 19:13:12 +0200 Subject: [PATCH] CBMEM: Rename utility file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This file will have CBMEM init hooks API one day. Change-Id: I0c31495d4217a5eb235b13e6d8e8c99a87a3b840 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/8031 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- src/lib/Makefile.inc | 4 +++- src/lib/{cbmem_info.c => cbmem_common.c} | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) rename src/lib/{cbmem_info.c => cbmem_common.c} (96%) diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index 05010914ce..ec3c2f4cc4 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -81,7 +81,9 @@ else ramstage-y += cbmem.c romstage-y += cbmem.c endif # CONFIG_DYNAMIC_CBMEM -ramstage-y += cbmem_info.c + +romstage-y += cbmem_common.c +ramstage-y += cbmem_common.c ramstage-y += hexdump.c romstage-y += hexdump.c diff --git a/src/lib/cbmem_info.c b/src/lib/cbmem_common.c similarity index 96% rename from src/lib/cbmem_info.c rename to src/lib/cbmem_common.c index 7b1168dc4e..a800173ffd 100644 --- a/src/lib/cbmem_info.c +++ b/src/lib/cbmem_common.c @@ -20,6 +20,8 @@ #include #include +#ifndef __PRE_RAM__ + static const struct cbmem_id_to_name cbmem_ids[] = { CBMEM_ID_TO_NAME_TABLE }; void cbmem_print_entry(int n, u32 id, u64 base, u64 size) @@ -43,3 +45,5 @@ void cbmem_print_entry(int n, u32 id, u64 base, u64 size) printk(BIOS_DEBUG, "%08llx ", base); printk(BIOS_DEBUG, "%08llx\n", size); } + +#endif /* !__PRE_RAM__ */