mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 14:55:16 +00:00
feat(fwu): add a function to pass metadata structure to platforms
Add a helper function to pass the metadata structure to the platforms. Platforms can then read the metadata structure and pass the boot index value, i.e. the bank(partition) from which the firmware images were booted, to the Update Agent. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Change-Id: I571179b9baa0fbc4d0f08d7a6e3b50c0c7165c5c
This commit is contained in:
parent
3cb1065581
commit
9adce87efc
2 changed files with 8 additions and 0 deletions
|
@ -157,6 +157,13 @@ bool fwu_is_trial_run_state(void)
|
|||
return trial_run;
|
||||
}
|
||||
|
||||
const struct fwu_metadata *fwu_get_metadata(void)
|
||||
{
|
||||
assert(is_fwu_initialized);
|
||||
|
||||
return &metadata;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Load verified copy of FWU metadata image kept in the platform NV storage
|
||||
* into local FWU metadata structure.
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
|
||||
void fwu_init(void);
|
||||
bool fwu_is_trial_run_state(void);
|
||||
const struct fwu_metadata *fwu_get_metadata(void);
|
||||
|
||||
#endif /* FWU_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue