Adding extra files to the existing packages
If we need to include an additional configuration file, we should use FILESEXTRAPATHS
, as explained in the previous example and shown in the following lines of code:
Figure 13.5 – The content of the .bbappend file to install a new configuration file
The do_install:append
function appends the provided block below the metadata already available in the original do_install
function. It includes the command to copy our new configuration file into the package’s filesystem. The file is copied from ${WORKDIR}
to ${D}
as these are the directories used by Poky to build the package and the destination directory used by Poky to create the package.
There are many variables to define paths in our recipes, such as bindir
, datadir
, and sysconfdir
. The poky/meta/conf/bitbake.conf
file defines all those commonly used variables. The variables exist, so the installation paths of binaries can be customized depending...