libavb: Handle wrong hashtree_error_mode in avb_append_options()Exit with AVB_SLOT_VERIFY_RESULT_ERROR_INVALID_ARGUMENTwhen hashtree_error_mode value passed to avb_append_options()is unknown (not
libavb: Handle wrong hashtree_error_mode in avb_append_options()Exit with AVB_SLOT_VERIFY_RESULT_ERROR_INVALID_ARGUMENTwhen hashtree_error_mode value passed to avb_append_options()is unknown (not from AvbHashtreeErrorMode enum).Otherwise, default value is not handled in theswitch(hashtree_error_mode), which causes below compile warning:lib/libavb/avb_cmdline.c: In function ‘avb_append_options’:lib/libavb/avb_cmdline.c:354:13: warning: ‘dm_verity_mode’ may be used uninitialized in this function [-Wmaybe-uninitialized] new_ret = avb_replace( ~~~~~~~~^~~~~~~~~~~~~~ slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~lib/libavb/avb_cmdline.c:363:8: warning: ‘verity_mode’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (!cmdline_append_option( ^~~~~~~~~~~~~~~~~~~~~~ slot_data, "androidboot.veritymode", verity_mode)) {Signed-off-by: Ievgen Maliarenko <ievgen.maliarenko@globallogic.com>Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org>
show more ...
libavb: Update SPDX tag styleSigned-off-by: Tom Rini <trini@konsulko.com>
avb2.0: integrate avb 2.0 into the build systemIntegrate libavb into the build system. Introduce CONFIG_LIBAVBbuild option.Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
avb2.0: add Android Verified Boot 2.0 libraryAdd libavb lib (3rd party library from AOSP), that implements support ofAVB 2.0. This library is used for integrity checking of Android partitionson e
avb2.0: add Android Verified Boot 2.0 libraryAdd libavb lib (3rd party library from AOSP), that implements support ofAVB 2.0. This library is used for integrity checking of Android partitionson eMMC.libavb was added as it is and minimal changes were introduced to reducemaintenance cost, because it will be deviated from AOSP upstream in the future.Changes:- license headers changed to conform SPDX-style- avb_crc32.c dropped- updates in avb_sysdeps_posix.c/avb_sysdeps.hFor additional details check [1] AVB 2.0 README.[1] https://android.googlesource.com/platform/external/avb/+/master/README.mdSigned-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>