Buildrom

"Buildrom is a tool that can construct a coreboot image (comprising the coreboot loader and payload) from scratch.

Starting from a configuration file, it will download and build all the code necessary to construct the final binary."

http://www.coreboot.org/Buildrom