How can I compile my custom hook functions into MCUboot?

As shown in the figure, MCUboot has a boot_go_hook function. I'd like to define this function in my own project and compile it into MCUboot. Since I'm using single slot DFU, firmware updates on the FLASH need to be handled within MCUboot. With this custom hook function, I can use a custom serial communication protocol and led effect to update the app firmware without modifying the NCS code.

Related