* Package feeds : These are directories containing output packages (RPM, DEB, or IPK), which are subsequently used in the construction of an image or SDK produced by the build system. This block expands on how BitBake fetches source files, applies patches, completes compilation, analyzes output for package generation, creates and tests packages, generates images, and generates cross-development tools. * Build system : These are processes under the control of BitBake. * Source files : These contain upstream releases, local projects, and source control management (Git, SVN, and so on). * Metadata layers : These are various layers that provide software, machine, and distribution metadata. * User Configuration : This is metadata you can use to control the build process. The following picture shows how BitBake works: Finally, it installs binaries, generates the corresponding package, and builds the final image, which can be installed on the target (Raspberry Pi for us). In short, from the information contained in the recipes (or metadata), it downloads the sources of projects from the Internet, a local directory, or a version-control system (such as Git), and then builds in the order determined by the dependency graph generated dynamically. So, to compile a Yocto recipe, use the code contained in the do_compile variable. To run a task, BitBake will first look for an environment variable called do_, which will contain the task code to execute (in Python or a shell). If no task is provided, BitBake will run the default task, called build. Once the environment is built, BitBake will execute the task that has been requested. Next, you will learn how to customize existing recipes in Yocto/OE layers and add layers to your custom environment (qt5 for example).īitBake, the build engine, is a task scheduler (like GNU Make) which parses several scripts (shell and Python, for example). You can then explore the different types of Yocto recipe elements (LICENSE, FILES, SRC_URI, and so on). It then helps you to develop an understanding of Bitbake (the task scheduler), and learn how to create a basic recipe through a GPIO application example. It starts with the basic introduction of Yocto's build system, and takes you through the setup and deployment steps for Yocto. This book presents you with the configuration of the Yocto Framework for the Raspberry Pi, allowing you to create amazing and innovative projects using the Yocto/OpenEmbedded eco-system. It is a powerful build system that allows you to master your personal or professional development. The Yocto Project is a Linux Foundation workgroup, which produces tools (SDK) and processes (configuration, compilation, installation) that will enable the creation of Linux distributions for embedded software, independent of the architecture of embedded software (Raspberry Pi, i.MX6, and so on).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |