mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
avb2.0: add proper dependencies
1. Since libavb library alone is highly portable, introduce dedicated Kconfig symbol for AVB bootloader-dependent operations, so it's possible to build libavb separately. AVB bootloader-dependent operations include: * Helpers to process strings in order to build OS bootargs. * Helpers to access MMC, similar to drivers/fastboot/fb_mmc.c. * Helpers to alloc/init/free avb ops. 2. Add CONFIG_FASTBOOT dependency, as fastboot buffer is re-used in partition verification operations. Reported-by: Eugeniu Rosca <rosca.eugeniu@gmail.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewed-by: Eugeniu Rosca <rosca.eugeniu@gmail.com> Tested-by: Eugeniu Rosca <rosca.eugeniu@gmail.com>
This commit is contained in:
parent
149c21b098
commit
b0aa74a264
4 changed files with 13 additions and 2 deletions
|
@ -1779,7 +1779,7 @@ config CMD_TRACE
|
||||||
|
|
||||||
config CMD_AVB
|
config CMD_AVB
|
||||||
bool "avb - Android Verified Boot 2.0 operations"
|
bool "avb - Android Verified Boot 2.0 operations"
|
||||||
depends on LIBAVB
|
depends on AVB_VERIFY
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enables a "avb" command to perform verification of partitions using
|
Enables a "avb" command to perform verification of partitions using
|
||||||
|
|
|
@ -637,6 +637,16 @@ config HASH
|
||||||
and the algorithms it supports are defined in common/hash.c. See
|
and the algorithms it supports are defined in common/hash.c. See
|
||||||
also CMD_HASH for command-line access.
|
also CMD_HASH for command-line access.
|
||||||
|
|
||||||
|
config AVB_VERIFY
|
||||||
|
bool "Build Android Verified Boot operations"
|
||||||
|
depends on LIBAVB && FASTBOOT
|
||||||
|
help
|
||||||
|
This option enables compilation of bootloader-dependent operations,
|
||||||
|
used by Android Verified Boot 2.0 library (libavb). Includes:
|
||||||
|
* Helpers to process strings in order to build OS bootargs.
|
||||||
|
* Helpers to access MMC, similar to drivers/fastboot/fb_mmc.c.
|
||||||
|
* Helpers to alloc/init/free avb ops.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Update support"
|
menu "Update support"
|
||||||
|
|
|
@ -121,4 +121,4 @@ obj-$(CONFIG_$(SPL_)LOG_CONSOLE) += log_console.o
|
||||||
obj-y += s_record.o
|
obj-y += s_record.o
|
||||||
obj-y += xyzModem.o
|
obj-y += xyzModem.o
|
||||||
|
|
||||||
obj-$(CONFIG_LIBAVB) += avb_verify.o
|
obj-$(CONFIG_AVB_VERIFY) += avb_verify.o
|
||||||
|
|
|
@ -58,6 +58,7 @@ Slot verification result: ERROR_IO
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
The following options must be enabled:
|
The following options must be enabled:
|
||||||
CONFIG_LIBAVB=y
|
CONFIG_LIBAVB=y
|
||||||
|
CONFIG_AVB_VERIFY=y
|
||||||
CONFIG_CMD_AVB=y
|
CONFIG_CMD_AVB=y
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue