Skip to content

Commit 0e42f27

Browse files
committed
bl_storage: Add empty HW counter lock impl
Add a dummy implementation of the new API to lock HW counter updates. Ref: NCSDK-38695 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 295b4cf commit 0e42f27

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

subsys/bootloader/bl_storage/nrf_nv_counters.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ int32_t boot_nv_security_counter_update(uint32_t image_id, uint32_t img_security
7575
return err == 0 ? 0 : -BOOT_EBADSTATUS;
7676
}
7777

78+
int32_t boot_nv_security_counter_lock(uint32_t image_id)
79+
{
80+
/* We support only one counter in MCUBOOT */
81+
if (image_id > 0) {
82+
return -BOOT_EBADARGS;
83+
}
84+
85+
return 0;
86+
}
87+
7888
fih_int boot_nv_security_counter_is_update_possible(uint32_t image_id,
7989
uint32_t img_security_cnt)
8090
{

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ manifest:
126126
compare-by-default: true
127127
- name: mcuboot
128128
repo-path: sdk-mcuboot
129-
revision: 459288d6a13cede9fa09e314b21a979a6cc6e3f2
129+
revision: pull/571/head
130130
path: bootloader/mcuboot
131131
- name: qcbor
132132
url: https://github.com/laurencelundblade/QCBOR

0 commit comments

Comments
 (0)