aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-02-09 19:35:16 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-02-09 19:35:16 +0000
commit4b8a24193512c8889c532e56df7e706c79dec447 (patch)
tree590433bd432d309846be622787fe79f18aa3b881 /src/cpu
parentf64b42ed7a0ec95e275b78e6a6c453aa523d9ee0 (diff)
Allow building images with different prefixes (ie. normal/romstage,
helloWorld/romstage, ...). It defaults to fallback/, so there's no user visible change now. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5102 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/amd/car/copy_and_run.c12
-rw-r--r--src/cpu/amd/model_lx/cache_as_ram.inc7
2 files changed, 4 insertions, 15 deletions
diff --git a/src/cpu/amd/car/copy_and_run.c b/src/cpu/amd/car/copy_and_run.c
index a391ec59b4..f8ccf17513 100644
--- a/src/cpu/amd/car/copy_and_run.c
+++ b/src/cpu/amd/car/copy_and_run.c
@@ -7,21 +7,13 @@ void cbfs_and_run_core(const char*, unsigned ebp);
static void copy_and_run(void)
{
-#if CONFIG_USE_FALLBACK_IMAGE == 1
- cbfs_and_run_core("fallback/coreboot_ram", 0);
-#else
- cbfs_and_run_core("normal/coreboot_ram", 0);
-#endif
+ cbfs_and_run_core(CONFIG_CBFS_PREFIX "/coreboot_ram", 0);
}
#if CONFIG_AP_CODE_IN_CAR == 1
static void copy_and_run_ap_code_in_car(unsigned ret_addr)
{
-# if CONFIG_USE_FALLBACK_IMAGE == 1
- cbfs_and_run_core("fallback/coreboot_apc", ret_addr);
-# else
- cbfs_and_run_core("normal/coreboot_apc", ret_addr);
-# endif
+ cbfs_and_run_core(CONFIG_CBFS_PREFIX "/coreboot_apc", ret_addr);
}
#endif
diff --git a/src/cpu/amd/model_lx/cache_as_ram.inc b/src/cpu/amd/model_lx/cache_as_ram.inc
index 1abfd8168a..659e0141a8 100644
--- a/src/cpu/amd/model_lx/cache_as_ram.inc
+++ b/src/cpu/amd/model_lx/cache_as_ram.inc
@@ -278,8 +278,5 @@ str_pre_main: .string "Jumping to coreboot.\r\n"
.previous
#endif /* ASM_CONSOLE_LOGLEVEL > BIOS_DEBUG */
-#if CONFIG_USE_FALLBACK_IMAGE == 1
-str_coreboot_ram_name: .string "fallback/coreboot_ram"
-#else
-str_coreboot_ram_name: .string "normal/coreboot_ram"
-#endif
+str_coreboot_ram_name: .ascii CONFIG_CBFS_PREFIX
+ .string "/coreboot_ram"