mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
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>
This commit is contained in:
parent
e863c7b285
commit
9e3eb4a05f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue