I have a custom firmware that I want to turn it into a library, whose APIs can be used with any firmware and will be flashed along with it, similar to how Nordic's softdevices are flashed and can be used. Is there any way that I can achieve this? Any help will be greatly appreciated.