diff options
author | Ye Li <ye.li@nxp.com> | 2018-06-05 01:30:34 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:26:25 -0700 |
commit | 6932a10a1a4b22a682736bc364c1e37720566af5 (patch) | |
tree | 6e7fe7a55f0e622652fa45ab600e6013d30e6530 /common | |
parent | 4bc24598a331ecd44ce979a534b104826cbb8044 (diff) |
MLK-18591-1 android: Add the AVB library
Porting the android AVB lib from imx u-boot v2018.03. Since 2019 u-boot
has added latest AVB library, try to reuse it.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 2105662ada738a271e12a81d775134a5821dc38f)
(cherry picked from commit f7291d86c4183ce2e299ad271aa5618c71507ffc)
(cherry picked from commit b871714c519e1bda3de6afbd354bee2cb246e4b7)
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index 0bbeaa7594..97dad1d39d 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -655,6 +655,14 @@ static int initr_bedbug(void) } #endif +#if defined(AVB_RPMB) && !defined(CONFIG_SPL) +extern int init_avbkey(void); +static int initr_avbkey(void) +{ + return init_avbkey(); +} +#endif + static int run_main_loop(void) { #ifdef CONFIG_SANDBOX @@ -868,6 +876,9 @@ static init_fnc_t init_sequence_r[] = { #if defined(CONFIG_M68K) && defined(CONFIG_BLOCK_CACHE) blkcache_init, #endif +#if defined(AVB_RPMB) && !defined(CONFIG_SPL) + initr_avbkey, +#endif run_main_loop, }; |