diff options
author | Igor Opaniuk <igor.opaniuk@linaro.org> | 2018-06-03 21:56:38 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-06-18 13:55:13 -0400 |
commit | 3af30e4443aa2c8224bf15ba352a5ef81b02711a (patch) | |
tree | 5984999dd9b8c66f93d2f25b1bb2681eb9062f39 /common/Makefile | |
parent | 3330584d2c5247d65744939c139160502b4b8c87 (diff) | |
download | u-boot-3af30e4443aa2c8224bf15ba352a5ef81b02711a.tar.gz u-boot-3af30e4443aa2c8224bf15ba352a5ef81b02711a.tar.bz2 u-boot-3af30e4443aa2c8224bf15ba352a5ef81b02711a.zip |
avb2.0: implement AVB ops
Implement AVB ops on top of existing mmc subsystem API. Currently there
is a full implementation of such operations, defined by [1]
AVB2.0 specification:
.read_from_partition() - reads N bytes from a partition identified by
a name.
.write_to_partition() - Writes N bytes to a partition identified by a name.
.validate_vbmeta_public_key() - checks if the given public ‘vbmeta’
partition is trusted.
.get_unique_guid_for_partition() - Gets the GUID for a partition identified
by a string name.
As [1] specification recommends to use tamper-evident storage for storing
rollback indexes and device state (LOCKED/UNLOCKED),
currently are only stubs instead of full implementation for these ops:
.read_rollback_index() - Gets the rollback index for a given index location
.write_rollback_index() - Sets the rollback index to a given location
.read_is_device_unlocked() - Gets where the device is unlocked
[1] https://android.googlesource.com/platform/external/avb/+/master/README.md
Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile index b3da72ebb2..66584f8f48 100644 --- a/common/Makefile +++ b/common/Makefile @@ -120,3 +120,5 @@ obj-$(CONFIG_$(SPL_)LOG) += log.o obj-$(CONFIG_$(SPL_)LOG_CONSOLE) += log_console.o obj-y += s_record.o obj-y += xyzModem.o + +obj-$(CONFIG_LIBAVB) += avb_verify.o |