I am using the `mcumgr` subsys to enable the DFU (Device Firmware Update) capabilities in a custom device that also features a custom (non mcuboot) bootloader. In order to get the so called Image Management Group SMP commands to work properly, we need to override the following functions (defined in the various source files).
(which we have done right now by *explcitly* weakening them in the source code)
Here is one example
`subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c`
We are then able to make the inbuilt mcumgr layer interact with our *custom* implementation and all is good.
I wanted to know if there was a *better* way to do this (i.e. one that does not require any source code modifications on the NSC source tree).
An AI enabled 'vibe coding' IDE that I have been using recently suggested using the `-Wl, --wrap=img_mgmt_read_info` trick, but this did not seem to work.
Thanks in advance.
Regards,
Sidd