[yocto] Adding test files to an image

Lauri Hintsala lauri.hintsala at bluegiga.com
Thu Mar 8 23:38:34 PST 2012


On 03/08/2012 05:34 PM, jfabernathy wrote:
> Suppose I want to build the meta-intel/meta-sugarbay image and also
> include some video and audio files into the /home/root directory to
> facilitate testing of the video and audio players.

I have used ROOTFS_POSTPROCESS_COMMAND variable to add some extra files 
to rootfs image for testing purposes. Following example is copying files 
from build/extra path to root filesystem image if the extra folder exists.

# copy files from extra folder to image
ROOTFS_POSTPROCESS_COMMAND += "[ -d ${TOPDIR}/extra ] && cp -r 
${TOPDIR}/extra/* {IMAGE_ROOTFS};"

Regards,
Lauri



More information about the yocto mailing list