summaryrefslogtreecommitdiff
path: root/firmware/lib/include
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-08-22 16:32:05 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-28 07:32:06 +0000
commitd0dae8029bc6c6805c56e384038cf8112e8766d6 (patch)
treec49bdfef1f08ca297adc649838527cbe8ea4874e /firmware/lib/include
parentab0d526e162ba7478080eab11200f00fe7565338 (diff)
downloadvboot-d0dae8029bc6c6805c56e384038cf8112e8766d6.tar.gz
vboot/secdata: remove DISABLE_ROLLBACK_TPM constant
This constant triggered different implementations of the two functions RollbackFwmpRead and RollbackKernelLock, whose overridden implementation would then be relied on in various tests. Instead, directly override these functions within the tests where they are required. The overridden implementations were also used in utilities/load_kernel_test.c, but this utility is currently broken and not in active use. If we would like to get it working again, simply override these two functions directly in the C file, just as is done for unit tests. (See b:139839429.) BUG=b:124141368, chromium:972956 TEST=make clean && make runtests BRANCH=none Change-Id: I0a4d24ea4ae4182b7f4f258860de6f712dae1555 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1765169 Tested-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/lib/include')
-rw-r--r--firmware/lib/include/rollback_index.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/lib/include/rollback_index.h b/firmware/lib/include/rollback_index.h
index 9d6cfcc3..4836063e 100644
--- a/firmware/lib/include/rollback_index.h
+++ b/firmware/lib/include/rollback_index.h
@@ -118,6 +118,11 @@ enum fwmp_flags {
* global variables.
*/
+uint32_t ReadSpaceFirmware(RollbackSpaceFirmware *rsf);
+uint32_t WriteSpaceFirmware(RollbackSpaceFirmware *rsf);
+uint32_t ReadSpaceKernel(RollbackSpaceKernel *rsk);
+uint32_t WriteSpaceKernel(RollbackSpaceKernel *rsk);
+
/**
* Read stored kernel version.
*/