soc/amd/common: Only load post-memory AGESA into RAM when split enabled
CONFIG_AGESA_SPLIT_MEMORY_FILES controls whether AGESA is split into pre- and post-memory binaries when it is built. Building AGESA this way is required when doing the new "load post-memory AGESA binary into ram" feature. Thus, condition this new path on the CONFIG option being enabled. BUG=b:71641792 TEST=build and boot kahlee with CONFIG_AGESA_SPLIT_MEMORY_FILES disabled Change-Id: Ibec9db67437c57092e0f7acf0e3185865dc02688 Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-on: https://review.coreboot.org/23141 Reviewed-by: Justin TerAvest <teravest@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
a241d6c76b
commit
462e470092
|
@ -446,7 +446,7 @@ static int agesa_locate_stage_file_ramstage(const char *name,
|
|||
|
||||
static int agesa_locate_stage_file(const char *name, struct region_device *rdev)
|
||||
{
|
||||
if (!ENV_RAMSTAGE)
|
||||
if (!ENV_RAMSTAGE || !IS_ENABLED(CONFIG_AGESA_SPLIT_MEMORY_FILES))
|
||||
return agesa_locate_stage_file_early(name, rdev);
|
||||
return agesa_locate_stage_file_ramstage(name, rdev);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue