Put generic functions in an includable script to make them properly available to external scripts.
Add a small vfat partition that can be use for different bootloader (u-boot, redboot, ...).
Add a template directory to store all templates.