1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-06 10:29:19 +01:00
Files
u-boot-megous/common
Sam Protsenko f254bd02a0 avb: Fix build when CONFIG_OPTEE_TA_AVB is disabled
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@linaro.org>
Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
2019-08-07 15:31:04 -04:00
..
2019-07-24 13:16:29 -04:00
2013-04-01 16:33:52 -04:00
2019-07-10 16:52:58 -06:00
2019-07-29 09:32:10 -04:00
2018-09-10 20:20:34 -04:00
2013-04-01 16:33:52 -04:00
2016-02-06 12:00:59 +01:00
2016-05-02 18:37:09 -04:00
2019-07-24 13:16:29 -04:00