Hi,
I need to make a few changes in the nRF Connect SDK's (particularly Zephyr's) source files to achieve certain functionality. I have made these changes in the SDK folder itself and tested the implementation and it works fine for us.
I now want a way by which I would be able to tell the CMAKE build system to ignore a particular source file in the SDK and use my custom source file instead, which I have placed in my project folder. I want to do this so that I don't have to provide a patch to all the developers in my team and I want to easily upgrade SDK as and when they are available. Our project is based on the matter-lock example provided by Nordic - NCS v2.1.0.
Path of the source file - C:\ncs\v2.1.0\zephyr\subsys\mgmt\mcumgr\lib\cmd\img_mgmt\src\zephyr_img_mgmt.c
Things that I have tried:
I have tried to make changes in the CMakeLists.txt located in my project to be able to do this. I added the following lines:
