uboot: fix build without glbtn and httpd

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2024-09-30 14:48:20 +08:00
committed by hanwckf
parent f6ae4782db
commit fefe1779a6
2 changed files with 12 additions and 0 deletions

View File

@@ -62,15 +62,21 @@ void main_loop(void)
efi_launch_capsules();
}
#ifdef CONFIG_HTTPD
if (env_get("failsafe") != NULL) {
env_set("failsafe", NULL);
env_save();
#ifdef CONFIG_CMD_GL_BTN
led_control("led", "system_led", "on");
#endif /* CONFIG_CMD_GL_BTN */
run_command("httpd", 0);
}
#endif /* CONFIG_HTTPD */
#ifdef CONFIG_CMD_GL_BTN
run_command("glbtn", 0);
#endif
s = bootdelay_process();
if (cli_process_fdt(&s))

View File

@@ -63,15 +63,21 @@ void main_loop(void)
efi_launch_capsules();
}
#ifdef CONFIG_HTTPD
if (env_get("failsafe") != NULL) {
env_set("failsafe", NULL);
env_save();
#ifdef CONFIG_CMD_GL_BTN
led_control("led", "system_led", "on");
#endif /* CONFIG_CMD_GL_BTN */
run_command("httpd", 0);
}
#endif /* CONFIG_HTTPD */
#ifdef CONFIG_CMD_GL_BTN
run_command("glbtn", 0);
#endif
s = bootdelay_process();
if (cli_process_fdt(&s))