1#=============================================================================== 2# @brief Kconfig file. 3# Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2023. All rights reserved. 4#=============================================================================== 5 6config BOOT_SUPPORT_HASH 7 bool 8 prompt "Hash" 9 default n 10 depends on BOOT_SUPPORT_SEC 11 help 12 This option means boot support hash check. 13 14config BOOT_SUPPORT_ECC_VERIFY 15 bool 16 prompt "Ecc Verify" 17 default n 18 depends on BOOT_SUPPORT_SECURE_VERIFY 19 help 20 This option means boot support ecc verify. 21 22config BOOT_SUPPORT_SM2_VERIFY 23 bool 24 prompt "Sm2 Verify" 25 default n 26 depends on BOOT_SUPPORT_SECURE_VERIFY 27 help 28 This option means boot support sm2 verify. 29 30config BOOT_SUPPORT_RSA3072_VERIFY 31 bool 32 prompt "Rsa3072 Verify" 33 default n 34 depends on BOOT_SUPPORT_SECURE_VERIFY 35 help 36 This option means boot support rsa3072 verify. 37 38config BOOT_SUPPORT_RSA4096_VERIFY 39 bool 40 prompt "Rsa4096 Verify" 41 default n 42 depends on BOOT_SUPPORT_SECURE_VERIFY 43 help 44 This option means boot support rsa4096 verify. 45 46config BOOT_SUPPORT_SOFT_VERIFY 47 bool 48 prompt "Soft Verify" 49 default n 50 depends on BOOT_SUPPORT_SECURE_VERIFY 51 help 52 This option means boot support soft verify. 53 54config FLASH_BOOT_SUPPORT_ROM_API 55 bool 56 prompt "flashboot support rom API" 57 default n 58 depends on BOOT_SUPPORT_SECURE_VERIFY 59 help 60 This option means flashboot support rom API. 61 62if CHIP_WS63 || CHIP_WS53 63 config ROM_EXPEND_SUPPORT_NOT_ALIGNED 64 bool 65 prompt "expand rom sha256 API to support data_length not 64 bytes aligned. only need by ws63 & ws53." 66 default n 67 depends on FLASH_BOOT_SUPPORT_ROM_API 68 help 69 This option means the sha256 data_length support not 64 bytes aligned. 70endif 71 72config LOADERBOOT_SUPPORT_SW_HASH 73 bool 74 prompt "Loaderboot Support Software Hash" 75 default n 76 depends on LOADERBOOT_SUPPORT_EFUSE_BURN 77 help 78 This option means flashboot support software hash. 79 80config LOADERBOOT_SUPPORT_DYNAMIC_PACKET_SIZE 81 bool 82 prompt "Loaderboot Support Dynamic Download Packet Size." 83 default n 84 help 85 This option means loaderboot support dynamic packet size. 86 87config YMODEM_PACKET_BUFFER_SZIE 88 int 89 prompt "ymodem buffer size in loaderboot." 90 depends on LOADERBOOT_SUPPORT_DYNAMIC_PACKET_SIZE 91 default 1024 92 help 93 This option means the max buffer size to store ymodem packet. 94 95config FLASH_WRITE_SIZE 96 int 97 prompt "flash write size for one time in loaderboot." 98 depends on LOADERBOOT_SUPPORT_DYNAMIC_PACKET_SIZE 99 default 1024 100 help 101 This option means write flash size for one time.