This chapter provides an overview on how to customize the Yocto Linux image to suit the user's
particular needs. These tasks require advanced Linux knowledge therefore are included only as a
reference.
Adding or Removing Packages
In the previous section, we have already discussed how to add a new application to the image.
Now let us look at another example by adding the Firefox browser to the Linux image.
1. In the build directory, edit the conf/local.conf file again to add the following line:
CORE_IMAGE_EXTRA_INSTALL += "firefox"
2. In the source code directory, edit the file sources/meta-browser/recipes-
mozilla/firefox/firefox_38.8.0esr.bb and comment out the last line if it
exists:
#PNBLACKLIST[firefox] ?= "BROKEN: fails to build with gcc-6"
3. Now rebuild the Linux image with Firefox.
$ bitbake fsl-image-validation-imx
After the build completes, deploy the new image to Zebra. Once the system boots up, an icon for
the Firefox browser should appear in the Applications screen, on the X11 desktop displayed on
the monitor.
Figure 10. Firefox Icon
Note: The new packages defined in local.conf will be added to all subsequent builds of the
Linux image. If any of them is no longer needed, simply remove it from local.conf and it will no
longer be included in the image.
Zebra (VL-EPC-2701) Yocto Linux User Guide
Customizing the Image
9
29