Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Using Yocto Project with BeagleBone Black

You're reading from  Using Yocto Project with BeagleBone Black

Product type Book
Published in Jun 2015
Publisher
ISBN-13 9781785289736
Pages 144 pages
Edition 1st Edition
Languages
Authors (2):
Hafiz Muhammad I Sadiq Hafiz Muhammad I Sadiq
Irfan Sadiq Irfan Sadiq
Profile icon Irfan Sadiq
View More author details

Table of Contents (17) Chapters

Using Yocto Project with BeagleBone Black
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Welcome to Yocto Project and BeagleBone Black What's BitBake All About? Creating the helloworld Recipe Adding Multimedia to Your Board Creating and Exploring Layers Your First Console Game Turning BeagleBone into a Home Surveillance System BeagleBone as a Wi-Fi Access Point Index

Conditional selection based on layers


We can use BBFILE_COLLECTIONS to conditionally decide which recipes to include in our BBFILES. To do this, we need to use logic that is similar to the following in our layer.conf:

  1. Firstly, add the following two lines to our layer.conf file:

    BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes-*/*/*.bbappend' % layer \
                   for layer in BBFILE_COLLECTIONS.split())}"
    BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes-*/*/*.bb' % layer \
                   for layer in BBFILE_COLLECTIONS.split())}"
  2. Secondly, arrange your recipes-* directories under directories named according to other layers found in BBFILE_COLLECTION. For example, we might need to add some metadata that is specific only to it, and we want it applied only when we have meta-ti included in our bblayers.conf file. What we will do in this case is create a directory under our layer—say, test/meta-t/—and move all of the recipe-* directories specific to it under this directory. In the current configuration...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}