![]() $ mkdir -p recipes-/hello-world/hello-worldĢ. Create a directory to host the application in the meta layer: $ cd $SDIR/meta. Create a Simple "Hello, World!" Example Recipeġ. Inspect the file structure using the tree command: $ tree $(SDIR)/meta. This may be inspected using the tree command. This script creates a minimal file structure for a new layer at the below path. Use the bitbake-layers script to create and add a new layer on the sources directory: $ cd ~/var-fslc-yocto/build If the shell/terminal is closed and starts a new one, this setting is not retained.Ģ. This environment variable is only set for this shell and its child processes.Create an environment variable for the sources directory: $ export SDIR=~/var-fslc-yocto/sources/ Whenever restarting a newer build session, or using a different terminal, just run: $ cd ~/var-fslc-yocto/Ī. ❶ The above command is only mandatory for the first-time build setup. $ MACHINE=imx8mm-var-dart DISTRO=fslc-xwayland. Set up the environment to create the new layer: $ cd ~/var-fslc-yocto/ For example, a layer can be used to hold all the configurations for a particular piece of hardware. Layers logically separate information for the project. The Yocto Project’s layer model facilitates collaboration, sharing, customization and reuse within the Yocto Project development environment. sets of instructions) that tell the Yocto build system how to build a target image. The Yocto layers are repositories that contain related metadata (i.e. ❶ The repo sync step may take a while to finish Chapter 2. Download the latest Dunfell manifest revision from Variscite: $ mkdir ~/var-fslc-yocto ❶ This step may not be needed if the bin folder already exists. To use Variscite's repo manifest the repo tool must be installed: $ mkdir ~/bin ① ❷ Change " Your Email" to your email address. $ git config -global user.email "Your Email" ② If git is not configured yet: $ git config -global user.name "Your Name" ① □ The apt package manager may need to use root privileges (sudo) to install the packages.Ģ. Mtd-utils pv libncurses5 libncurses5-dev libncursesw5-dev \ Mercurial automake groff curl lzop asciidoc u-boot-tools dos2unix \ Gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev \ ![]() $ apt install autoconf libtool libglib2.0-dev libarchive-dev sed cvs subversion \Ĭoreutils texi2html docbook-utils python-pysqlite2 help2man make \ Xz-utils debianutils iputils-ping libsdl1.2-dev xterm tree Install the essential packages for Yocto to work on host machine: $ apt install gawk wget git diffstat unzip texinfo gcc-multilib build-essential \Ĭhrpath socat cpio python python3 python3-pip python3-pexpect \ The following packages must be installed on the host machine (based on Ubuntu 20.04 64-bit, in this example):ġ. Setting Up the Yocto Project Environment 1.3.1. □ The procedures below are compatible with all Variscite System on Modules. Visit Variscite’s Software Wiki for a full guide on how to build Yocto from source code. Yocto Dunfell 3.1 (Based on FSL Community BSP). This document uses Variscite's Yocto Dunfell BSP as an example: Yocto Project GPU: Vivante™ GC7000Lite 3D and GC520L 2Dįor more information, visit Variscite’s DART-MX8M-MINI Software Wiki and Product Page This document uses the Variscite DART-MX8M-MINI module as an example: DART-MX8M-MINI Creating a new meta layer and modify it to be a meta BSP layer with a machine configuration file: 1.2. Creating a new meta layer on top of Variscite Yocto BSP:ģ. Preparing the environment to build Yocto:Ģ. The document is divided into three parts:ġ. Then, you will modify it to be a BSP layer by adding a machine configuration file. You will learn how to create a meta layer that compiles and installs a 'Hello, World!' application. This article demonstrates how to create a Yocto BSP layer for a custom carrier board designed for a Variscite System on Module / Computer on Module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |