fastboot: Only call the bootm command if it is enabled
PATCH 1/1 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 <[email protected]>
---
drivers/fastboot/fb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fastboot/fb_common.c +1 -1
@@ -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
Signature · 1 line
2.39.2
Quoted 4 lines · Samuel Holland
This fixes an error with trying to link against
do_bootm()whenCONFIG_CMD_BOOTMis disabled.Signed-off-by Samuel Holland <[email protected]>
Reviewed-by Mattijs Korpershoek <[email protected]>
Quoted 20 lines
---
drivers/fastboot/fb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/fastboot/fb_common.c +1
-1@@ -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 Signature · 1 line
2.39.2
Hi,
Quoted 14 lines · Samuel Holland
This fixes an error with trying to link against
do_bootm()whenCONFIG_CMD_BOOTMis disabled.Signed-off-by Samuel Holland <[email protected]>---
drivers/fastboot/fb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/fastboot/fb_common.c +0
-0
drivers/fastboot/fb_common.c void fastboot_boot(void) · line 141
Quoted 8 lines
drivers/fastboot/fb_common.c +1
-1@@ -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
Reviewed-by Patrick Delaunay <[email protected]>
Thanks
Patrick
Quoted 6 lines · Samuel Holland
This fixes an error with trying to link against
do_bootm()whenCONFIG_CMD_BOOTMis disabled.Signed-off-by Samuel Holland <[email protected]>Reviewed-by Mattijs Korpershoek <[email protected]>Reviewed-by Patrick Delaunay <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom