From: Lokesh Vutla Date: Mon, 7 Oct 2019 08:22:15 +0000 (+0530) Subject: boot: arm: Enable support for custom board_prep_linux X-Git-Tag: v2020.01-rc1~5^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=899a9de3e462d93d7c91f5205b41d4c41e01ccbb;p=oweals%2Fu-boot.git boot: arm: Enable support for custom board_prep_linux Once the arch specific boot_prepare_linux completes, boards wants to have a custom preparation for linux. Add support for a custom board_prep_linux. Signed-off-by: Lokesh Vutla --- diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 1638f1e81d..488358a331 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -224,6 +224,8 @@ static void do_nonsec_virt_switch(void) } #endif +__weak void board_prep_linux(bootm_headers_t *images) { } + /* Subcommand: PREP */ static void boot_prep_linux(bootm_headers_t *images) { @@ -270,6 +272,8 @@ static void boot_prep_linux(bootm_headers_t *images) printf("FDT and ATAGS support not compiled in - hanging\n"); hang(); } + + board_prep_linux(images); } __weak bool armv7_boot_nonsec_default(void)