From: Samuel Holland Date: Mon, 20 Feb 2023 06:14:58 +0000 (-0600) Subject: fastboot: Only call the bootm command if it is enabled X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=9e3eb4a05fa19031781a44b7458bcf690955d358;p=u-boot.git fastboot: Only call the bootm command if it is enabled This fixes an error with trying to link against do_bootm() when CONFIG_CMD_BOOTM is disabled. Signed-off-by: Samuel Holland Reviewed-by: Mattijs Korpershoek Reviewed-by: Patrick Delaunay --- diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index 621146bc6b..4e9d9b719c 100644 --- a/drivers/fastboot/fb_common.c +++ b/drivers/fastboot/fb_common.c @@ -135,7 +135,7 @@ void fastboot_boot(void) s = env_get("fastboot_bootcmd"); if (s) { run_command(s, CMD_FLAG_ENV); - } else { + } else if (IS_ENABLED(CONFIG_CMD_BOOTM)) { static char boot_addr_start[20]; static char *const bootm_args[] = { "bootm", boot_addr_start, NULL