CONFIG_BOOTSTAGE_REPORT is currently supported in the bootm command only. Add support to the EFI boot.
Signed-off-by: Jerome Forissier <jerome.foriss...@linaro.org> --- lib/efi_loader/efi_boottime.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index c8d9a6037f7..96da279afd4 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY LOGC_EFI #include <bootm.h> +#include <bootstage.h> #include <div64.h> #include <dm/device.h> #include <dm/root.h> @@ -2179,6 +2180,12 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle, EFI_ENTRY("%p, %zx", image_handle, map_key); +#if !defined(USE_HOSTCC) +#if CONFIG_IS_ENABLED(BOOTSTAGE) + bootstage_report(); +#endif +#endif + /* Check that the caller has read the current memory map */ if (map_key != efi_memory_map_key) { ret = EFI_INVALID_PARAMETER; -- 2.43.0