Flashing custom baremetal to eMMC

I have a custom baremetal program that I wrote that I usually host via tftp for the BBB to download on boot and then pass off execution to my code loaded in ram. I however would now like to permanently store this program to the eMMC and have the device boot from that. Does anyone know of any good resources or hints to accomplish this?