[PATCH 13/27] efi: Allow disabling networking in the app
Simon Glass
sjg at chromium.org
Wed May 28 10:24:39 CEST 2025
When networking is disabled, avoid trying to use networking in the app.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
lib/efi_client/efi_app_init.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/efi_client/efi_app_init.c b/lib/efi_client/efi_app_init.c
index 25a9b105d63..ff31266fb12 100644
--- a/lib/efi_client/efi_app_init.c
+++ b/lib/efi_client/efi_app_init.c
@@ -342,9 +342,11 @@ int board_early_init_r(void)
ret = setup_block();
if (ret)
return ret;
- ret = setup_net();
- if (ret)
- return ret;
+ if (IS_ENABLED(CONFIG_NET)) {
+ ret = setup_net();
+ if (ret)
+ return ret;
+ }
ret = setup_tpm();
if (ret)
return ret;
--
2.43.0
More information about the U-Boot
mailing list