The rest of the buildfile

The rest of the buildfile contains attributes, filenames and contents. These set where mkifs looks for the files it includes in the image, as well as other system attributes such as file ownership and permissions.

As an example of the last part of a buildfile, we can examine the following example:

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
libc.so
[data=c]
devc-ser8250
hello

If we parse the contents of this example, we find:

Attributes
[type=link] — specifies that the contents of ldqnx.so.2 are a link.
[data=c] — specifies that the data segment of an executable is copied when invoked.
Filenames
ldqnx.so.2, libc.so, devc-ser8250 and hello — the names of files that included in the image
Contents
/proc/boot/libc.so — on the line with the attribute [type=link], the contents to be written into the file ldqnx.so.2 in the image.

For more information, see the documentation for mkifs in the Utilities Reference.