]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
refactor(imx8m): pass platform metadata as a function's argument
authorManish V Badarkhe <Manish.Badarkhe@arm.com>
Fri, 18 Nov 2022 20:42:44 +0000 (20:42 +0000)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Tue, 22 Nov 2022 10:06:56 +0000 (10:06 +0000)
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 <Manish.Badarkhe@arm.com>
plat/imx/imx8m/imx8m_measured_boot.c

index ec61606e59069ead1de479f9920ebca1d88cb3a1..e9ea2d8734f18aa6c5af8a333ec185acaa3fbe79 100644 (file)
@@ -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);