DFU (at least for nordic) requires a .dat file with a computed checksum. I cribbed some work from a nordic python script to generate that
https://github.com/jacobrosenthal/redbearlab-nrf51822-gcc/blob/master/scripts/generate_dat.py
Now Im trying to find a place for it in the build pipeline. I thought maybe by my target would be a good place to put it, as I already have a target that inherits from nordic, so I added it to a scripts folder and added a toolchain.cmake and call it during a POST BUILD hook
This works, but now the nordic target Im inheriting from doesnt have its toolchain.cmake called anymore, which I want because it generates the combined .hex file with their softdevice.
I could obviously copy the entirety of nordics target scripts, but then whats the point of inheritance anymore?
Any ideas?