lib: remove assets infrastructure
Now that only CBFS access is supported for finding resources within the boot media the assets infrastructure can be removed. Remove it. BUG=chromium:445938 BRANCH=None TEST=Built and ran on glados. Change-Id: I383fd6579280cf9cfe5a18c2851baf74cad004e9 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/12690 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -44,7 +44,7 @@ void __attribute__((weak)) *soc_get_bl31_plat_params(bl31_params_t *params)
|
||||
|
||||
void arm_tf_run_bl31(u64 payload_entry, u64 payload_arg0, u64 payload_spsr)
|
||||
{
|
||||
struct prog bl31 = PROG_INIT(ASSET_BL31, CONFIG_CBFS_PREFIX"/bl31");
|
||||
struct prog bl31 = PROG_INIT(PROG_BL31, CONFIG_CBFS_PREFIX"/bl31");
|
||||
void (*bl31_entry)(bl31_params_t *params, void *plat_params) = NULL;
|
||||
|
||||
if (prog_locate(&bl31))
|
||||
@@ -58,7 +58,7 @@ void arm_tf_run_bl31(u64 payload_entry, u64 payload_arg0, u64 payload_spsr)
|
||||
SET_PARAM_HEAD(&bl31_params, PARAM_BL31, VERSION_1, 0);
|
||||
|
||||
if (IS_ENABLED(CONFIG_ARM64_USE_SECURE_OS)) {
|
||||
struct prog bl32 = PROG_INIT(ASSET_BL32, CONFIG_CBFS_PREFIX"/secure_os");
|
||||
struct prog bl32 = PROG_INIT(PROG_BL32, CONFIG_CBFS_PREFIX"/secure_os");
|
||||
|
||||
if (prog_locate(&bl32))
|
||||
die("BL31 not found");
|
||||
|
@@ -61,7 +61,7 @@ void arch_prog_run(struct prog *prog)
|
||||
void (*doit)(void *);
|
||||
void *arg;
|
||||
|
||||
if (ENV_RAMSTAGE && prog_type(prog) == ASSET_PAYLOAD) {
|
||||
if (ENV_RAMSTAGE && prog_type(prog) == PROG_PAYLOAD) {
|
||||
run_payload(prog);
|
||||
return;
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ void arch_prog_run(struct prog *prog)
|
||||
{
|
||||
void (*doit)(void *) = prog_entry(prog);
|
||||
|
||||
if (ENV_RAMSTAGE && prog_type(prog) == ASSET_PAYLOAD) {
|
||||
if (ENV_RAMSTAGE && prog_type(prog) == PROG_PAYLOAD) {
|
||||
initVirtualMemory();
|
||||
write_csr(mepc, doit);
|
||||
asm volatile("eret");
|
||||
|
@@ -184,7 +184,7 @@ static void jmp_payload(void *entry, unsigned long buffer, unsigned long size)
|
||||
|
||||
static void try_payload(struct prog *prog)
|
||||
{
|
||||
if (prog_type(prog) == ASSET_PAYLOAD) {
|
||||
if (prog_type(prog) == PROG_PAYLOAD) {
|
||||
if (IS_ENABLED(CONFIG_RELOCATABLE_RAMSTAGE))
|
||||
jmp_payload_no_bounce_buffer(prog_entry(prog));
|
||||
else
|
||||
|
Reference in New Issue
Block a user