diff options
author | Yu Shan <shanyu@google.com> | 2017-09-11 14:03:44 +0800 |
---|---|---|
committer | Luo Ji <ji.luo@nxp.com> | 2018-07-04 13:52:49 +0800 |
commit | e60cfff70e04853c9702524dca790b2eaeac6289 (patch) | |
tree | 644726f052a81d5f37728411b940a0c58c151d2a /include | |
parent | 77742af423955a298cd43dde195d7333a3d471ba (diff) |
[iot] Support fastboot oem fuse at-perm-attr command
Support "fastboot oem fuse at-perm-attr" command for
ATX. The perm_attr will be stored into RPMB which
managed by Trusty OS.
Modified permanent_attributes related AVB ops that
support Trusty OS backed RPMB storage.
Change-Id: Id6248570b4294fed3c45270064196bd6b9cf9208
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_avb.h | 4 | ||||
-rw-r--r-- | include/fsl_fastboot.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h index 2bb3d427cc2..ae290a9f48a 100644 --- a/include/fsl_avb.h +++ b/include/fsl_avb.h @@ -219,4 +219,8 @@ AvbABFlowResult avb_single_flow(AvbABOps* ab_ops, AvbSlotVerifyFlags flags, AvbHashtreeErrorMode hashtree_error_mode, AvbSlotVerifyData** out_data); + +/* Program ATX perm_attr into RPMB partition */ +int avb_atx_fuse_perm_attr(uint8_t *staged_buffer, uint32_t size); + #endif /* __FSL_AVB_H__ */ diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index 9ca21f67894..02433e0b366 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -81,7 +81,10 @@ #ifdef CONFIG_ANDROID_THINGS_SUPPORT #define FASTBOOT_BOOTLOADER_VBOOT_KEY "fuse at-bootloader-vboot-key" -#endif +#ifdef CONFIG_AVB_ATX +#define FASTBOOT_AVB_AT_PERM_ATTR "fuse at-perm-attr" +#endif /* CONFIG_AVB_ATX */ +#endif /* CONFIG_ANDROID_THINGS_SUPPORT */ enum { DEV_SATA, |