Book Image

Using Yocto Project with BeagleBone Black

By : Hafiz Muhammad I Sadiq, Irfan Sadiq
Book Image

Using Yocto Project with BeagleBone Black

By: Hafiz Muhammad I Sadiq, Irfan Sadiq

Overview of this book

Table of Contents (17 chapters)
Using Yocto Project with BeagleBone Black
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Packagegroups


We have discussed how to customize images using the append file on images, or using configuration files. These techniques are useful in some use cases, yet they could become a hassle in cases where we are dealing with logs of packages and we want to use these packages with more than one image type. In such cases, we will be performing duplications, which are certainly not clean. To avoid such cases, packagegroups comes into play. The idea is to keep these lists of packages separate from image append files so that they can be used across multiple images.

This is a specialized recipe .bb file with the following features. Again, it will reside in the top-level directory of our layer/recipes-*/packagegroups/<packagegroup>.bb file:

  • It inherits package groups, that is, the packagegroup.bbclass class is used from meta/classes. This should be the first line of the code:

    Inherit packagegroup
  • All of the packagegroups that need to be created are added to the PACKAGES variable:

    PACKAGES...