From de10522af77a6457716b33e55ce7ea7898443742 Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Fri, 18 Nov 2022 20:42:44 +0000 Subject: [PATCH] refactor(imx8m): pass platform metadata as a function's argument Based on the prototype modification of the event_log_measure_and_record function in the previous patch, platform metadata was passed as an argument. Change-Id: I4b98b6a035abb28c000344f2dbeb3996c69eee61 Signed-off-by: Manish V Badarkhe --- plat/imx/imx8m/imx8m_measured_boot.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plat/imx/imx8m/imx8m_measured_boot.c b/plat/imx/imx8m/imx8m_measured_boot.c index ec61606e5..e9ea2d873 100644 --- a/plat/imx/imx8m/imx8m_measured_boot.c +++ b/plat/imx/imx8m/imx8m_measured_boot.c @@ -24,17 +24,13 @@ static const event_log_metadata_t imx8m_event_log_metadata[] = { { EVLOG_INVALID_ID, NULL, (unsigned int)(-1) } /* Terminator */ }; -const event_log_metadata_t *plat_event_log_get_metadata(void) -{ - return imx8m_event_log_metadata; -} - int plat_mboot_measure_image(unsigned int image_id, image_info_t *image_data) { /* Calculate image hash and record data in Event Log */ int err = event_log_measure_and_record(image_data->image_base, image_data->image_size, - image_id); + image_id, + imx8m_event_log_metadata); if (err != 0) { ERROR("%s%s image id %u (%i)\n", "Failed to ", "record", image_id, err); -- 2.39.5