mbox series

[v2,0/2] avb2.0: fix multiple compilation issues in sandbox

Message ID 1531827206-16158-1-git-send-email-igor.opaniuk@linaro.org
Headers show
Series avb2.0: fix multiple compilation issues in sandbox | expand

Message

Igor Opaniuk July 17, 2018, 11:33 a.m. UTC
This series of two patches fixes compilation issues when AVB 2.0 is
enabled for the 'sandbox' architecture:

1. Since libavb library alone is highly portable, it introduce dedicated
Kconfig symbol for AVB compiler-dependent operations, so it's possible
to build libavb separately.
2. Add CONFIG_FASTBOOT dependency, as fastboot buffer is
re-used in partition verification operations.
3. Use blk_dread()/blk_dwrite() in mmc_read()/mmc_write() AVB operation
implementations. This fixes compilation issues when CONFIG_BLK is
enabled.

Changes for v2:
- Updated eb81cae89f ("avb2.0: add proper dependencies")
commit message (added more details).
- Extended description of AVB_VERIFY Kconfig symbol.
- Replaced CONFIG_LIBAVB to CONFIG_AVB_VERIFY in common/Makefile.

Igor Opaniuk (2):
  avb2.0: add proper dependencies
  avb2.0: use block API in AVB ops

 cmd/Kconfig         |  2 +-
 common/Kconfig      | 10 ++++++++++
 common/Makefile     |  2 +-
 common/avb_verify.c |  9 +++++----
 doc/README.avb2     |  1 +
 5 files changed, 18 insertions(+), 6 deletions(-)

--
2.7.4