Add to Yocto rootfs build files and folders from local host

Hi,

How can add files and folders from local build system to Yocto build image rootfs without making additional recipe?
Is it possible to define local system paths to files and folders into “build/local.conf” file, instead of creating new build recipe?

Thanks.

BR

Dear @kaloianpenev,

if you don’t want to touch the Yocto build system, there are several options you can do to add folders/files to the baked image rather to make changes to a recipe:

  1. You can always edit the rootfs by hand: In the /deploy/images/colibri-imx6, you should have a Colibri-iMX6_LXDE-Image.rootfs.tar.xz. Extract it, make the neccesary edits, compress it again and use that in your Toradex Easy Installer image.
  2. The Colibri iMX6 features a eMMC flash. You can use the ums feature of Uboot to directly access the filesystem in the eMMC through the USB with the command ums 0 mmc 0. This way, you will see BOOT and RFS partitions as any other block device when connected through the OTG USB (the same USB used for recovery).

Other options are going to require changing one recipe or another.

Best regards, Alvaro.