1.4. Customizing a Recipe for a BSP

If you plan on customizing a recipe for a particular BSP, you need to do the following:

Following is a specific example to help you better understand the process. Consider an example that customizes a recipe by adding a BSP-specific configuration file named interfaces to the init-ifupdown_1.0.bb recipe for machine "xyz" where the BSP layer also supports several other machines. Do the following:

  1. Edit the init-ifupdown_1.0.bbappend file so that it contains the following:

         FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
                           

    The append file needs to be in the meta-xyz/recipes-core/init-ifupdown directory.

  2. Create and place the new interfaces configuration file in the BSP's layer here:

         meta-xyz/recipes-core/init-ifupdown/files/xyz-machine-one/interfaces
                           

    Note

    If the meta-xyz layer did not support multiple machines, you would place the interfaces configuration file in the layer here:
         meta-xyz/recipes-core/init-ifupdown/files/interfaces
                               

    The FILESEXTRAPATHS variable in the append files extends the search path the build system uses to find files during the build. Consequently, for this example you need to have the files directory in the same location as your append file.