Including many files

Updated: April 19, 2023

To include the contents of a directory and its subdirectories, you can simply specify the directory instead of individual files.

For example, if you have a directory called /release_1.0 and you want to include all files and subdirectories in that directory in the image, you need to put the following line in your buildfile:
/release_1.0

This puts all files that reside in this host directory into /proc/boot on the target. If /release_1.0 has subdirectories, then mkifs creates them under /proc/boot and includes all their files in the image.

If you don't want to place the files in /proc/boot, you must explicitly specify the directory where you want them placed, as you would specify a target location for a file (see Location of files on the target). For instance, if you want the /release_1.0 files to go under the root directory, specify:
/=/release_1.0

This tells mkifs to take everything from /release_1.0 and put it into the root directory (/) in the image.