I have built boot-loader hex file from SDK 12.1.0 secure DFU project, without any changes except for public_key.c file.
I am referring to steps mentioned under
Combine application, bootloader and softdevice image - Bootloader setting
Is this applicable for the SDK version 12.1.0 and nrf51?