Yocto recipe to copy a single file on the root file system

If you have a single file for example a video file or a script file and you want this file to be present on the root file system. There are two steps for this:

1. Create a recipe
2. Add this recipe into your local.conf file

For this post, let's consider I want to copy a script file to bin folder of root file system.

1. Create 'recipes-support' folder in your own 'meta' layer
2. In 'recipes-support' folder create a new folder named  as per your requirement, for example 'emc-test'
3. cd into the folder and then create a folder named 'files' into that
4. Copy your script into the files folder.
5. cd back to the emc-test folder and create a file named 'emc-test_0.1.bb'
6. Copy the below recipe and paste into it and make modifications as per your files
7. Add the following line into local.conf : IMAGE_INSTALL += "emc-test"


Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig