Browse Source
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: I9d8316914c046f47cdc6875b16649479e82087aa Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>pull/1990/head
Manish V Badarkhe
2 years ago
3 changed files with 19 additions and 37 deletions
@ -1,34 +0,0 @@ |
|||
/*
|
|||
* Copyright (c) 2022, Linaro. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#include <assert.h> |
|||
#include <stdint.h> |
|||
|
|||
#include <common/desc_image_load.h> |
|||
#include <drivers/measured_boot/event_log/event_log.h> |
|||
#include <plat/common/platform.h> |
|||
|
|||
extern event_log_metadata_t qemu_event_log_metadata[]; |
|||
|
|||
const event_log_metadata_t *plat_event_log_get_metadata(void) |
|||
{ |
|||
return qemu_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); |
|||
if (err != 0) { |
|||
ERROR("%s%s image id %u (%i)\n", |
|||
"Failed to ", "record", image_id, err); |
|||
return err; |
|||
} |
|||
|
|||
return 0; |
|||
} |
Loading…
Reference in new issue