summaryrefslogtreecommitdiff
path: root/drivers/fastboot
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2023-02-20 00:14:58 -0600
committerTom Rini <trini@konsulko.com>2023-05-31 17:23:01 -0400
commit9e3eb4a05fa19031781a44b7458bcf690955d358 (patch)
tree25884fcc1f277d09233b755c7398fdc2e8f1e7f5 /drivers/fastboot
parente863c7b2854bf9a882939f828023508fb1a1bc16 (diff)
downloadu-boot-9e3eb4a05fa19031781a44b7458bcf690955d358.tar.gz
u-boot-9e3eb4a05fa19031781a44b7458bcf690955d358.tar.bz2
u-boot-9e3eb4a05fa19031781a44b7458bcf690955d358.zip
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 <samuel@sholland.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers/fastboot')
-rw-r--r--drivers/fastboot/fb_common.c2
1 files changed, 1 insertions, 1 deletions
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