summaryrefslogtreecommitdiffstats
path: root/core/flash.c
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2016-10-31 01:11:41 -0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-11-02 16:48:37 +1100
commit20db137e82039f9dafd42352525f1e8a8b7995ea (patch)
tree3402737360f5ee8d480baed5299b875db4bfef42 /core/flash.c
parent3dc16bb7cae2af752466f38ec928f75279da03f6 (diff)
downloadblackbird-skiboot-20db137e82039f9dafd42352525f1e8a8b7995ea.tar.gz
blackbird-skiboot-20db137e82039f9dafd42352525f1e8a8b7995ea.zip
libstb: remove subid argument from sb_verify and tb_measure
We always verify and measure an image as a whole, never its subpartition (if exists). This removes the subid argument from sb_verify() and tb_measure() functions, and also reflects the change to the callers, STB interface and STB documentation. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/flash.c')
-rw-r--r--core/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/flash.c b/core/flash.c
index a704380d..5ab7fc85 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -655,8 +655,8 @@ done_reading:
* Verify and measure the retrieved PNOR partition as part of the
* secure boot and trusted boot requirements
*/
- sb_verify(id, subid, buf, *len);
- tb_measure(id, subid, buf, *len);
+ sb_verify(id, buf, *len);
+ tb_measure(id, buf, *len);
/* Find subpartition */
if (subid != RESOURCE_SUBID_NONE) {
OpenPOWER on IntegriCloud