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)
commit9e3eb4a05fa19031781a44b7458bcf690955d358
tree25884fcc1f277d09233b755c7398fdc2e8f1e7f5
parente863c7b2854bf9a882939f828023508fb1a1bc16
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>
drivers/fastboot/fb_common.c