Files
u-boot/lib/efi_client/efi_main.c
Simon Glass 5ea9e69b82 efi: Add a flag to enable ulib
When running as an EFI app we should set the ulib flag early so as to
avoid printing unwanted output on start. Add a parameter to
efi_startup() to control whether ulib is used.

Drop the starting message in this case.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-11-12 08:40:05 -07:00

25 lines
511 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* EFI application entry point
*
* This file provides the efi_main() entry point function called by EFI firmware.
* It is separate from the library so applications can provide their own efi_main().
*/
#include <efi.h>
#include <efi_api.h>
efi_status_t EFIAPI efi_main(efi_handle_t image,
struct efi_system_table *sys_table)
{
efi_status_t ret;
ret = efi_startup(image, sys_table, false);
if (ret)
return ret;
efi_shutdown();
return EFI_SUCCESS;
}