Creating a production .elf for ATmega2560

Hello,

I need to flash a fresh ATmega2560 chip with the Arduino bootloader before flashing the output generated by Platformio. This is very inefficent for production.

Does anybody know if there is a way of creating a stand-alone .elf file that doesn’t need the bootloader? If it includes the fuses configuration it would be outstanding.

Thanks!