![]() It is not a must but it’s strongly recommended to have the name of the layer start with “meta-“, the Poky new layer script uses this naming convention. You may see the structure of the new layer by using the following command: We’ll leave this example recipe with the default settings. You may opt for an example recipe to be created on your new layer. We’ll be asked to enter le layer priority, we’ll keep the default 6 but you may want a higher priority depending on your application. poky/scripts/yocto-layer create new-layer We’ll name the new layer “new-layer” as shown below: However, it’s always easier to use the new layer script in order to create the required structure and then fill in with our customized configuration. Layers are basically a group of directories and meta data in configuration and recipe files (which contains metadata as text), so you may create these directories and meta data files by hand. There are a couple of scripts available as part of the Open embedded tools that allows for easy creation of a new layer and recipe. If you would like to have a better look at the distinctive Layers that make up the Yocto BSP Release and the FSL Community Release please look at the Yocto Project Layers Mind Map available on the following link: The general layout of a BSP is shown on the image below. We can see that the poky and open embedded layers have a lower priority than those than the BSP and SDK layers as the later sit on top of the former. A higher numeric value represents a higher priority. Layer Priority: Each layer has a priority, which is used by bitbake to decide which layer takes precedence if there are recipe files with the same name in multiple layers. The layers that constitute out BSP will be displayed along with the path and priority of each. Once your environment is setup you can see the layers that compose the BSP using the command: It also makes it easy to distribute our customizable source code trough a unique layer. Layers in Yocto allow us to organize the long list of providers and to easily customize for our target hardware while reusing a lot of tools already available. We will work with the bitbake environment so this needs to be initialized in our terminal. You may install it with the following command: tree tool for the host, to see the directory format of the different layers. For more information on requirements for the Host please refer to the Yocto User’s Guide available as part of the Linux BSP Document Bundle (available on the link below) L4.1.15 BSP Release for the i.MX6 family of processors installed on the host. If you are new to Yocto it is recommended to go through the following very informative Training which is focused on the FSL Community BSP but covers the basics of Yocto step-by-step in a very clear and concise manner. We will be using the latest i.MX6 Linux BSP as reference, but the same logics apply to any Yocto Project BSP including the Community BSP. This is a simple document explaining the basics of creating a new layer within a Yocto BSP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |