The syntax of the buildfile is similar to that for mkifs, but mkefs supports a different set of attributes, including the following:
Refer to the Utilities Reference for a complete description of the buildfile syntax and attributes supported by mkefs.
Here's a very simple example of a buildfile:
[block_size=128k spare_blocks=1 filter=deflate] /home/ejm/products/sp1/callp/imagedir
In this example, the attributes specify that the flash devices have a block size of 128 KB, that there should be one spare block, and that all the files should be processed using the deflate utility, which compresses the files. A single directory is given. Just as with mkifs, when we specify a directory, all files and subdirectories beneath it are included in the resulting image. Most of the other filename tricks shown above for mkifs also apply to mkefs.