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

Building a recipe


Now that we have created a recipe, we are ready to build it. We already know how to build a recipe by invoking the simple BitBake <recipename> command as follows in our specific case:

$ bitbake helloworld

Tip

Do not forget to set an environment before running BitBake commands. You can set the environment by running the following command:

$ source oe-init-build-env build_bbb

We are omitting the output of this command for brevity. This will build our helloworld application/package/recipe. Thus, the binary helloworld that is created can be found at tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/helloworld/0.1-r0/helloworld. How can we know where some specific package will be found? Do we need to run a find command for this, or is there some criterion followed? Yes, we have a certain criteria followed here. For this, we need to look into how the WORKDIR variable is constructed. If we grep this variable from bitbake.conf, which can be found under poky/meta/conf/ directory...