Commit 0771af0
boot: zephyr: sysflash: restore FLASH_AREA_IMAGE_x macros
When introducing the MCUBOOT_MCUMGR_SIMPLE_IMAGE_INDEX option[1], the
following macros were changed:
FLASH_AREA_IMAGE_PRIMARY(x)
FLASH_AREA_IMAGE_SECONDARY(x)
These macros are used in other parts of the MCUboot codebase as well,
so it seems more appropriate to make the config implementation a bit
uglier to restore the intended behavior[2] of these macros.
The SIMPLE_IMAGE_INDEX is only relevant for `boot_serial.c` to simplify
the `mcumgr` image numbering.
Note: one case is unreachable and commented out since the SCRATCH
partition definition also is not available here.
[1] 766be5d
[2] nrfconnect@7c3d7ed1 parent 10de1a2 commit 0771af0
File tree
2 files changed
+29
-3
lines changed- boot
- boot_serial/src
- zephyr/include/sysflash
2 files changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
323 | 349 | | |
324 | 350 | | |
325 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments