[U-Boot] [PATCH 1/2] avb: Fix build when CONFIG_OPTEE_TA_AVB is disabled
Tom Rini
trini at konsulko.com
Thu Aug 8 03:16:24 UTC 2019
On Wed, Jul 31, 2019 at 07:59:08PM +0300, Sam Protsenko wrote:
> When having only these AVB related configs enabled:
>
> CONFIG_AVB_VERIFY=y
> CONFIG_CMD_AVB=y
> CONFIG_LIBAVB=y
>
> build fails with next errors:
>
> common/avb_verify.c: In function 'read_persistent_value':
> common/avb_verify.c:867:6: warning: implicit declaration of function
> 'get_open_session'
> common/avb_verify.c:870:45: error: 'struct AvbOpsData' has no member
> named 'tee'
> common/avb_verify.c:894:7: warning: implicit declaration of function
> 'invoke_func'
> common/avb_verify.c: In function 'write_persistent_value':
> common/avb_verify.c:931:45: error: 'struct AvbOpsData' has no member
> named 'tee'
>
> Guard read_persistent_value() and write_persistent_value() functions
> by checking if CONFIG_OPTEE_TA_AVB is enabled (as those are only used in
> that case) to fix the build with mentioned configuration.
>
> Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
> Reviewed-by: Igor Opaniuk <igor.opaniuk at gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190807/ab4dec19/attachment.sig>
More information about the U-Boot
mailing list