Greeting Nordic Expert !
I would like to override the following hook in MCUboot:
int boot_perform_update_hook(int img_index,
struct image_header *img_head,
const struct flash_area *area);
My goal is to dynamically enable/disable signature verification in MCUboot.
From reading the source code, it seems that implementing this hook is the right approach.
However, I cannot find any working examples or tutorials on how to properly provide my own implementation of this function and ensure it is compiled into the MCUboot child image in NCS (v3.0.1).
Could you please clarify:
1. Is there an official example or sample project that demonstrates overriding `boot_perform_update_hook`?
2. What is the recommended way to add such a file into the MCUboot child image?
Thank you for your support!