Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 1 | # Copyright (c) 2017 Linaro Limited |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | # |
| 5 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 6 | mainmenu "MCUboot configuration" |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 7 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 8 | comment "MCUboot-specific configuration options" |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 9 | |
Emanuele Di Santo | 865777d | 2018-11-08 11:28:15 +0100 | [diff] [blame] | 10 | # Hidden option to mark a project as MCUboot |
| 11 | config MCUBOOT |
| 12 | default y |
| 13 | bool |
Rajavardhan Gundi | 07ba28f | 2018-12-10 15:44:48 +0530 | [diff] [blame] | 14 | select MPU_ALLOW_FLASH_WRITE if ARM_MPU |
Andrzej Puzdrowski | 23d3c66 | 2019-03-18 14:12:22 +0100 | [diff] [blame] | 15 | select USE_CODE_PARTITION if HAS_FLASH_LOAD_OFFSET |
Emanuele Di Santo | 865777d | 2018-11-08 11:28:15 +0100 | [diff] [blame] | 16 | |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 17 | config BOOT_USE_MBEDTLS |
| 18 | bool |
| 19 | # Hidden option |
| 20 | default n |
| 21 | help |
| 22 | Use mbedTLS for crypto primitives. |
| 23 | |
| 24 | config BOOT_USE_TINYCRYPT |
| 25 | bool |
| 26 | # Hidden option |
| 27 | default n |
Sebastian Bøe | 913a385 | 2019-01-22 13:53:12 +0100 | [diff] [blame] | 28 | # When building for ECDSA, we use our own copy of mbedTLS, so the |
| 29 | # Zephyr one must not be enabled or the MBEDTLS_CONFIG_FILE macros |
| 30 | # will collide. |
| 31 | depends on ! MBEDTLS |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 32 | help |
| 33 | Use TinyCrypt for crypto primitives. |
| 34 | |
Sigvart Hovland | ebd0503 | 2019-03-21 10:47:32 +0100 | [diff] [blame] | 35 | config BOOT_USE_CC310 |
| 36 | bool |
| 37 | # Hidden option |
| 38 | default n |
| 39 | # When building for ECDSA, we use our own copy of mbedTLS, so the |
| 40 | # Zephyr one must not be enabled or the MBEDTLS_CONFIG_FILE macros |
| 41 | # will collide. |
| 42 | depends on ! MBEDTLS |
| 43 | help |
| 44 | Use cc310 for crypto primitives. |
| 45 | |
| 46 | config BOOT_USE_NRF_CC310_BL |
| 47 | bool |
| 48 | default n |
| 49 | |
| 50 | config NRFXLIB_CRYPTO |
| 51 | bool |
| 52 | default n |
| 53 | |
| 54 | config NRF_CC310_BL |
| 55 | bool |
| 56 | default n |
| 57 | |
Andrzej Puzdrowski | 9754328 | 2018-04-12 15:16:56 +0200 | [diff] [blame] | 58 | menu "MCUBoot settings" |
| 59 | |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 60 | choice |
| 61 | prompt "Signature type" |
| 62 | default BOOT_SIGNATURE_TYPE_RSA |
| 63 | |
| 64 | config BOOT_SIGNATURE_TYPE_RSA |
| 65 | bool "RSA signatures" |
| 66 | select BOOT_USE_MBEDTLS |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 67 | select MBEDTLS |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 68 | |
Fabio Utzig | 105b59a | 2019-05-13 15:08:12 -0700 | [diff] [blame] | 69 | if BOOT_SIGNATURE_TYPE_RSA |
| 70 | config BOOT_SIGNATURE_TYPE_RSA_LEN |
| 71 | int "RSA signature length" |
| 72 | range 2048 3072 |
| 73 | default 2048 |
| 74 | endif |
| 75 | |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 76 | config BOOT_SIGNATURE_TYPE_ECDSA_P256 |
| 77 | bool "Elliptic curve digital signatures with curve P-256" |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 78 | |
Sigvart Hovland | ebd0503 | 2019-03-21 10:47:32 +0100 | [diff] [blame] | 79 | if BOOT_SIGNATURE_TYPE_ECDSA_P256 |
| 80 | choice |
| 81 | prompt "Ecdsa implementation" |
Fabio Utzig | 34e93a5 | 2020-02-03 09:59:53 -0300 | [diff] [blame^] | 82 | default BOOT_ECDSA_TINYCRYPT |
| 83 | config BOOT_ECDSA_TINYCRYPT |
Sigvart Hovland | ebd0503 | 2019-03-21 10:47:32 +0100 | [diff] [blame] | 84 | bool "Use tinycrypt" |
| 85 | select BOOT_USE_TINYCRYPT |
| 86 | config BOOT_CC310 |
| 87 | bool "Use CC310" |
| 88 | select BOOT_USE_NRF_CC310_BL if HAS_HW_NRF_CC310 |
| 89 | select NRF_CC310_BL if HAS_HW_NRF_CC310 |
| 90 | select NRFXLIB_CRYPTO if SOC_FAMILY_NRF |
| 91 | select BOOT_USE_CC310 |
| 92 | endchoice |
| 93 | endif |
Fabio Utzig | 34e93a5 | 2020-02-03 09:59:53 -0300 | [diff] [blame^] | 94 | |
| 95 | config BOOT_SIGNATURE_TYPE_ED25519 |
| 96 | bool "Edwards curve digital signatures using ed25519" |
| 97 | |
| 98 | if BOOT_SIGNATURE_TYPE_ED25519 |
| 99 | choice |
| 100 | prompt "Ecdsa implementation" |
| 101 | default BOOT_ED25519_TINYCRYPT |
| 102 | config BOOT_ED25519_TINYCRYPT |
| 103 | bool "Use tinycrypt" |
| 104 | select BOOT_USE_TINYCRYPT |
| 105 | config BOOT_ED25519_MBEDTLS |
| 106 | bool "Use mbedTLS" |
| 107 | select BOOT_USE_MBEDTLS |
| 108 | select MBEDTLS |
| 109 | endchoice |
| 110 | endif |
| 111 | |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 112 | endchoice |
| 113 | |
Fabio Utzig | c690c76 | 2018-04-26 10:51:09 -0300 | [diff] [blame] | 114 | config BOOT_SIGNATURE_KEY_FILE |
| 115 | string "PEM key file" |
| 116 | default "" |
| 117 | help |
| 118 | The key file will be parsed by imgtool's getpub command and a .c source |
| 119 | with the public key information will be written in a format expected by |
| 120 | MCUboot. |
| 121 | |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 122 | config MBEDTLS_CFG_FILE |
| 123 | default "mcuboot-mbedtls-cfg.h" |
| 124 | |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 125 | config BOOT_VALIDATE_SLOT0 |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 126 | bool "Validate image in the primary slot on every boot" |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 127 | default y |
| 128 | help |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 129 | If y, the bootloader attempts to validate the signature of the |
| 130 | primary slot every boot. This adds the signature check time to |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 131 | every boot, but can mitigate against some changes that are |
| 132 | able to modify the flash image itself. |
| 133 | |
| 134 | config BOOT_UPGRADE_ONLY |
| 135 | bool "Overwrite image updates instead of swapping" |
| 136 | default n |
| 137 | help |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 138 | If y, overwrite the primary slot with the upgrade image instead |
| 139 | of swapping them. This prevents the fallback recovery, but |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 140 | uses a much simpler code path. |
| 141 | |
Fabio Utzig | c58842e | 2019-11-28 10:30:01 -0300 | [diff] [blame] | 142 | config BOOT_SWAP_USING_MOVE |
Fabio Utzig | dd2b680 | 2020-01-06 09:10:45 -0300 | [diff] [blame] | 143 | bool "Swap mode that can run without a scratch partition" |
Håkon Øye Amundsen | 09be783 | 2020-01-24 14:34:49 +0000 | [diff] [blame] | 144 | default y if SOC_FAMILY_NRF |
Fabio Utzig | c58842e | 2019-11-28 10:30:01 -0300 | [diff] [blame] | 145 | default n |
| 146 | help |
| 147 | If y, the swap upgrade is done in two steps, where first every |
| 148 | sector of the primary slot is moved up one sector, then for |
| 149 | each sector X in the secondary slot, it is moved to index X in |
| 150 | the primary slot, then the sector at X+1 in the primary is |
| 151 | moved to index X in the secondary. |
| 152 | This allows a swap upgrade without using a scratch partition, |
| 153 | but is currently limited to all sectors in both slots being of |
| 154 | the same size. |
| 155 | |
Fabio Utzig | d0533ed | 2018-12-19 07:56:33 -0200 | [diff] [blame] | 156 | config BOOT_BOOTSTRAP |
Sam Bristow | d0ca0ff | 2019-10-30 20:51:35 +1300 | [diff] [blame] | 157 | bool "Bootstrap erased the primary slot from the secondary slot" |
Fabio Utzig | d0533ed | 2018-12-19 07:56:33 -0200 | [diff] [blame] | 158 | default n |
| 159 | help |
| 160 | If y, enables bootstraping support. Bootstrapping allows an erased |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 161 | primary slot to be initialized from a valid image in the secondary slot. |
Fabio Utzig | d0533ed | 2018-12-19 07:56:33 -0200 | [diff] [blame] | 162 | If unsure, leave at the default value. |
| 163 | |
Fabio Utzig | ca8ead2 | 2019-12-20 07:06:04 -0300 | [diff] [blame] | 164 | config BOOT_SWAP_SAVE_ENCTLV |
| 165 | bool "Save encrypted key TLVs instead of plaintext keys in swap metadata" |
| 166 | default n |
| 167 | help |
| 168 | If y, instead of saving the encrypted image keys in plaintext in the |
| 169 | swap resume metadata, save the encrypted image TLVs. This should be used |
| 170 | when there is no security mechanism protecting the data in the primary |
| 171 | slot from being dumped. If n is selected (default), the keys are written |
| 172 | after being decrypted from the image TLVs and could be read by an |
| 173 | attacker who has access to the flash contents of the primary slot (eg |
| 174 | JTAG/SWD or primary slot in external flash). |
| 175 | If unsure, leave at the default value. |
| 176 | |
Fabio Utzig | 5fe874c | 2018-08-31 07:41:50 -0300 | [diff] [blame] | 177 | config BOOT_ENCRYPT_RSA |
Fabio Utzig | 42cc29a | 2019-11-05 07:54:41 -0300 | [diff] [blame] | 178 | bool "Support for encrypted upgrade images using RSA" |
Fabio Utzig | 5fe874c | 2018-08-31 07:41:50 -0300 | [diff] [blame] | 179 | default n |
| 180 | help |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 181 | If y, images in the secondary slot can be encrypted and are decrypted |
| 182 | on the fly when upgrading to the primary slot, as well as encrypted |
Fabio Utzig | 42cc29a | 2019-11-05 07:54:41 -0300 | [diff] [blame] | 183 | back when swapping from the primary slot to the secondary slot. The |
| 184 | encryption mechanism used in this case is RSA-OAEP (2048 bits). |
| 185 | |
| 186 | config BOOT_ENCRYPT_EC256 |
| 187 | bool "Support for encrypted upgrade images using ECIES-P256" |
| 188 | default n |
| 189 | help |
| 190 | If y, images in the secondary slot can be encrypted and are decrypted |
| 191 | on the fly when upgrading to the primary slot, as well as encrypted |
| 192 | back when swapping from the primary slot to the secondary slot. The |
| 193 | encryption mechanism used in this case is ECIES using primitives |
| 194 | described under "ECIES-P256 encryption" in docs/encrypted_images.md. |
Fabio Utzig | 5fe874c | 2018-08-31 07:41:50 -0300 | [diff] [blame] | 195 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 196 | config BOOT_MAX_IMG_SECTORS |
| 197 | int "Maximum number of sectors per image slot" |
| 198 | default 128 |
| 199 | help |
| 200 | This option controls the maximum number of sectors that each of |
| 201 | the two image areas can contain. Smaller values reduce MCUboot's |
| 202 | memory usage; larger values allow it to support larger images. |
| 203 | If unsure, leave at the default value. |
| 204 | |
Emanuele Di Santo | 205c8c6 | 2018-07-20 11:42:31 +0200 | [diff] [blame] | 205 | config BOOT_ERASE_PROGRESSIVELY |
| 206 | bool "Erase flash progressively when receiving new firmware" |
| 207 | default y if SOC_NRF52840 |
| 208 | help |
| 209 | If enabled, flash is erased as necessary when receiving new firmware, |
| 210 | instead of erasing the whole image slot at once. This is necessary |
| 211 | on some hardware that has long erase times, to prevent long wait |
| 212 | times at the beginning of the DFU process. |
| 213 | |
Rajavardhan Gundi | 51c9d70 | 2019-02-20 14:08:52 +0530 | [diff] [blame] | 214 | config BOOT_WAIT_FOR_USB_DFU |
| 215 | bool "Wait for a prescribed duration to see if USB DFU is invoked" |
| 216 | default n |
| 217 | select USB |
| 218 | select USB_DFU_CLASS |
| 219 | select IMG_MANAGER |
| 220 | help |
| 221 | If y, MCUboot waits for a prescribed duration of time to allow |
| 222 | for USB DFU to be invoked. Please note DFU always updates the |
| 223 | slot1 image. |
| 224 | |
Marti Bolivar | bc2fa4e | 2018-04-12 12:18:32 -0400 | [diff] [blame] | 225 | config ZEPHYR_TRY_MASS_ERASE |
| 226 | bool "Try to mass erase flash when flashing MCUboot image" |
| 227 | default y |
| 228 | help |
| 229 | If y, attempt to configure the Zephyr build system's "flash" |
| 230 | target to mass-erase the flash device before flashing the |
| 231 | MCUboot image. This ensures the scratch and other partitions |
| 232 | are in a consistent state. |
| 233 | |
| 234 | This is not available for all targets. |
| 235 | |
David Brown | f6d14c2 | 2019-12-10 15:36:36 -0700 | [diff] [blame] | 236 | config BOOT_USE_BENCH |
| 237 | bool "Enable benchmark code" |
| 238 | default n |
| 239 | help |
| 240 | If y, adds support for simple benchmarking that can record |
| 241 | time intervals between two calls. The time printed depends |
| 242 | on the particular Zephyr target, and is generally ticks of a |
| 243 | specific board-specific timer. |
| 244 | |
Michael Scott | 74ceae5 | 2019-02-01 14:01:09 -0800 | [diff] [blame] | 245 | module = MCUBOOT |
Piotr Mienkowski | 15aa6ef | 2019-04-08 22:48:15 +0200 | [diff] [blame] | 246 | module-str = MCUBoot bootloader |
Michael Scott | 74ceae5 | 2019-02-01 14:01:09 -0800 | [diff] [blame] | 247 | source "subsys/logging/Kconfig.template.log_config" |
Michael Scott | 74ceae5 | 2019-02-01 14:01:09 -0800 | [diff] [blame] | 248 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 249 | menuconfig MCUBOOT_SERIAL |
| 250 | bool "MCUboot serial recovery" |
| 251 | default n |
| 252 | select REBOOT |
Emanuele Di Santo | 30a9265 | 2019-01-16 14:01:08 +0100 | [diff] [blame] | 253 | select GPIO |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 254 | select SERIAL |
Emanuele Di Santo | 30a9265 | 2019-01-16 14:01:08 +0100 | [diff] [blame] | 255 | select UART_INTERRUPT_DRIVEN |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 256 | select BASE64 |
| 257 | select TINYCBOR |
| 258 | help |
| 259 | If y, enables a serial-port based update mode. This allows |
| 260 | MCUboot itself to load update images into flash over a UART. |
| 261 | If unsure, leave at the default value. |
| 262 | |
| 263 | if MCUBOOT_SERIAL |
| 264 | |
Emanuele Di Santo | c4bf780 | 2018-07-20 11:39:57 +0200 | [diff] [blame] | 265 | choice |
| 266 | prompt "Serial device" |
| 267 | default BOOT_SERIAL_UART if !BOARD_NRF52840_PCA10059 |
| 268 | default BOOT_SERIAL_CDC_ACM if BOARD_NRF52840_PCA10059 |
| 269 | |
| 270 | config BOOT_SERIAL_UART |
| 271 | bool "UART" |
| 272 | # SERIAL and UART_INTERRUPT_DRIVEN already selected |
| 273 | |
| 274 | config BOOT_SERIAL_CDC_ACM |
| 275 | bool "CDC ACM" |
| 276 | select USB |
| 277 | select USB_DEVICE_STACK |
| 278 | select USB_CDC_ACM |
| 279 | |
| 280 | endchoice |
| 281 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 282 | config BOOT_MAX_LINE_INPUT_LEN |
| 283 | int "Maximum command line length" |
| 284 | default 512 |
| 285 | help |
| 286 | Maximum length of commands transported over the serial port. |
| 287 | |
| 288 | config BOOT_SERIAL_DETECT_PORT |
| 289 | string "GPIO device to trigger serial recovery mode" |
| 290 | default GPIO_0 if SOC_FAMILY_NRF |
| 291 | help |
| 292 | Zephyr GPIO device which contains the pin used to trigger |
| 293 | serial recovery mode. |
| 294 | |
| 295 | config BOOT_SERIAL_DETECT_PIN |
| 296 | int "Pin to trigger serial recovery mode" |
Andreas Vibeto | 704b8ba | 2019-04-25 10:51:23 +0200 | [diff] [blame] | 297 | default 6 if BOARD_NRF9160_PCA10090 |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 298 | default 11 if BOARD_NRF52840_PCA10056 |
| 299 | default 13 if BOARD_NRF52_PCA10040 |
| 300 | help |
| 301 | Pin on the serial detect port which triggers serial recovery mode. |
| 302 | |
| 303 | config BOOT_SERIAL_DETECT_PIN_VAL |
| 304 | int "Serial detect pin trigger value" |
| 305 | default 0 |
| 306 | range 0 1 |
| 307 | help |
| 308 | Logic value of the detect pin which triggers serial recovery |
| 309 | mode. |
| 310 | |
Andrzej Puzdrowski | f000480 | 2019-10-01 14:13:35 +0200 | [diff] [blame] | 311 | # Workaround for not being able to have commas in macro arguments |
| 312 | DT_CHOSEN_Z_CONSOLE := zephyr,console |
| 313 | |
| 314 | config RECOVERY_UART_DEV_NAME |
| 315 | string "UART Device Name for Recovery UART" |
| 316 | default "$(dt_chosen_label,$(DT_CHOSEN_Z_CONSOLE))" if HAS_DTS |
| 317 | default "UART_0" |
| 318 | depends on BOOT_SERIAL_UART |
| 319 | help |
| 320 | This option specifies the name of UART device to be used for |
| 321 | serial recovery. |
| 322 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 323 | endif # MCUBOOT_SERIAL |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 324 | |
Andrzej Puzdrowski | 9754328 | 2018-04-12 15:16:56 +0200 | [diff] [blame] | 325 | endmenu |
| 326 | |
Carles Cufi | 84ede58 | 2018-01-29 15:12:00 +0100 | [diff] [blame] | 327 | config MCUBOOT_DEVICE_SETTINGS |
| 328 | # Hidden selector for device-specific settings |
| 329 | bool |
| 330 | default y |
| 331 | # CPU options |
| 332 | select MCUBOOT_DEVICE_CPU_CORTEX_M0 if CPU_CORTEX_M0 |
Carles Cufi | 67c792e | 2018-01-29 15:14:31 +0100 | [diff] [blame] | 333 | # Enable flash page layout if available |
| 334 | select FLASH_PAGE_LAYOUT if FLASH_HAS_PAGE_LAYOUT |
Andrzej Puzdrowski | b788c71 | 2018-04-12 12:42:49 +0200 | [diff] [blame] | 335 | # Enable flash_map module as flash I/O back-end |
| 336 | select FLASH_MAP |
Carles Cufi | 84ede58 | 2018-01-29 15:12:00 +0100 | [diff] [blame] | 337 | |
| 338 | config MCUBOOT_DEVICE_CPU_CORTEX_M0 |
| 339 | # Hidden selector for Cortex-M0 settings |
| 340 | bool |
| 341 | default n |
| 342 | select SW_VECTOR_RELAY if !CPU_CORTEX_M0_HAS_VECTOR_TABLE_REMAP |
| 343 | |
Marti Bolivar | 0e091c9 | 2018-04-12 11:23:16 -0400 | [diff] [blame] | 344 | comment "Zephyr configuration options" |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 345 | |
Marti Bolivar | f84cc4b | 2019-08-20 16:06:56 -0700 | [diff] [blame] | 346 | # Disabling MULTITHREADING provides a code size advantage, but |
| 347 | # it requires peripheral drivers (particularly a flash driver) |
| 348 | # that works properly with the option enabled. |
| 349 | # |
| 350 | # If you know for sure that your hardware will work, you can default |
| 351 | # it to n here. Otherwise, having it on by default makes the most |
| 352 | # hardware work. |
| 353 | config MULTITHREADING |
| 354 | default n if SOC_FAMILY_NRF |
| 355 | default y |
| 356 | |
Håkon Øye Amundsen | 954dd2b | 2019-09-23 09:24:13 +0000 | [diff] [blame] | 357 | config UPDATEABLE_IMAGE_NUMBER |
| 358 | int "Number of updateable images" |
| 359 | default 1 |
| 360 | help |
| 361 | Enables support of multi image update. |
| 362 | |
Håkon Øye Amundsen | 2d1bac1 | 2020-01-03 13:08:09 +0000 | [diff] [blame] | 363 | config MCUBOOT_DOWNGRADE_PREVENTION |
| 364 | bool "Downgrade prevention" |
| 365 | depends on BOOT_UPGRADE_ONLY |
| 366 | help |
| 367 | Prevent downgrades by enforcing incrementing version numbers. |
| 368 | When this option is set, any upgrade must have greater major version |
| 369 | or greater minor version with equal major version. This mechanism |
| 370 | only protects against some attacks against version downgrades (for |
| 371 | example, a JTAG could be used to write an older version). |
| 372 | |
Robert Lubos | 1b19d2a | 2020-01-31 14:05:35 +0100 | [diff] [blame] | 373 | source "Kconfig.zephyr" |