]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fastboot: Only call the bootm command if it is enabled
authorSamuel Holland <samuel@sholland.org>
Mon, 20 Feb 2023 06:14:58 +0000 (00:14 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 31 May 2023 21:23:01 +0000 (17:23 -0400)
This fixes an error with trying to link against do_bootm() when
CONFIG_CMD_BOOTM is disabled.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/fastboot/fb_common.c

index 621146bc6b0800fec48567454e1b912f194d8cb9..4e9d9b719c6f89d3c844ec6d906ce0b09f1d1bdc 100644 (file)
@@ -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