Use the global load_buffer, and the boot_image function.
drwxr-xr-x - src