109209eecSAndrew Geissler.. SPDX-License-Identifier: CC-BY-SA-2.0-UK 209209eecSAndrew Geissler 309209eecSAndrew Geissler========================= 409209eecSAndrew GeisslerYocto Project Quick Build 509209eecSAndrew Geissler========================= 609209eecSAndrew Geissler 709209eecSAndrew GeisslerWelcome! 809209eecSAndrew Geissler======== 909209eecSAndrew Geissler 1009209eecSAndrew GeisslerThis short document steps you through the process for a typical 1109209eecSAndrew Geisslerimage build using the Yocto Project. The document also introduces how to 1209209eecSAndrew Geisslerconfigure a build for specific hardware. You will use Yocto Project to 1309209eecSAndrew Geisslerbuild a reference embedded OS called Poky. 1409209eecSAndrew Geissler 1509209eecSAndrew Geissler.. note:: 1609209eecSAndrew Geissler 1709209eecSAndrew Geissler - The examples in this paper assume you are using a native Linux 1809209eecSAndrew Geissler system running a recent Ubuntu Linux distribution. If the machine 1909209eecSAndrew Geissler you want to use Yocto Project on to build an image 2009209eecSAndrew Geissler (:term:`Build Host`) is not 2109209eecSAndrew Geissler a native Linux system, you can still perform these steps by using 2209209eecSAndrew Geissler CROss PlatformS (CROPS) and setting up a Poky container. See the 2309209eecSAndrew Geissler :ref:`dev-manual/start:setting up to use cross platforms (crops)` 2409209eecSAndrew Geissler section 2509209eecSAndrew Geissler in the Yocto Project Development Tasks Manual for more 2609209eecSAndrew Geissler information. 2709209eecSAndrew Geissler 28*2390b1b6SPatrick Williams - You may use version 2 of Windows Subsystem For Linux (WSL 2) to set 29*2390b1b6SPatrick Williams up a build host using Windows 10 or later, Windows Server 2019 or later. 30*2390b1b6SPatrick Williams See the :ref:`dev-manual/start:setting up to use windows subsystem for 31*2390b1b6SPatrick Williams linux (wsl 2)` section in the Yocto Project Development Tasks Manual 32*2390b1b6SPatrick Williams for more information. 3309209eecSAndrew Geissler 3409209eecSAndrew GeisslerIf you want more conceptual or background information on the Yocto 3509209eecSAndrew GeisslerProject, see the :doc:`/overview-manual/index`. 3609209eecSAndrew Geissler 3709209eecSAndrew GeisslerCompatible Linux Distribution 3809209eecSAndrew Geissler============================= 3909209eecSAndrew Geissler 4009209eecSAndrew GeisslerMake sure your :term:`Build Host` meets the 4109209eecSAndrew Geisslerfollowing requirements: 4209209eecSAndrew Geissler 4309209eecSAndrew Geissler- 50 Gbytes of free disk space 4409209eecSAndrew Geissler 4509209eecSAndrew Geissler- Runs a supported Linux distribution (i.e. recent releases of Fedora, 4609209eecSAndrew Geissler openSUSE, CentOS, Debian, or Ubuntu). For a list of Linux 4709209eecSAndrew Geissler distributions that support the Yocto Project, see the 4809209eecSAndrew Geissler :ref:`ref-manual/system-requirements:supported linux distributions` 4909209eecSAndrew Geissler section in the Yocto Project Reference Manual. For detailed 5009209eecSAndrew Geissler information on preparing your build host, see the 5109209eecSAndrew Geissler :ref:`dev-manual/start:preparing the build host` 5209209eecSAndrew Geissler section in the Yocto Project Development Tasks Manual. 5309209eecSAndrew Geissler 5409209eecSAndrew Geissler- 5509209eecSAndrew Geissler 563b8a17c1SAndrew Geissler - Git &MIN_GIT_VERSION; or greater 573b8a17c1SAndrew Geissler - tar &MIN_TAR_VERSION; or greater 583b8a17c1SAndrew Geissler - Python &MIN_PYTHON_VERSION; or greater. 593b8a17c1SAndrew Geissler - gcc &MIN_GCC_VERSION; or greater. 60615f2f11SAndrew Geissler - GNU make &MIN_MAKE_VERSION; or greater 6109209eecSAndrew Geissler 6209209eecSAndrew GeisslerIf your build host does not meet any of these three listed version 6309209eecSAndrew Geisslerrequirements, you can take steps to prepare the system so that you 6409209eecSAndrew Geisslercan still use the Yocto Project. See the 65615f2f11SAndrew Geissler:ref:`ref-manual/system-requirements:required git, tar, python, make and gcc versions` 6609209eecSAndrew Geisslersection in the Yocto Project Reference Manual for information. 6709209eecSAndrew Geissler 6809209eecSAndrew GeisslerBuild Host Packages 6909209eecSAndrew Geissler=================== 7009209eecSAndrew Geissler 7109209eecSAndrew GeisslerYou must install essential host packages on your build host. The 7209209eecSAndrew Geisslerfollowing command installs the host packages based on an Ubuntu 7309209eecSAndrew Geisslerdistribution: 7409209eecSAndrew Geissler 7509209eecSAndrew Geissler.. code-block:: shell 7609209eecSAndrew Geissler 77eff27476SAndrew Geissler $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL; 7809209eecSAndrew Geissler 7909209eecSAndrew Geissler.. note:: 8009209eecSAndrew Geissler 8109209eecSAndrew Geissler For host package requirements on all supported Linux distributions, 8209209eecSAndrew Geissler see the :ref:`ref-manual/system-requirements:required packages for the build host` 8309209eecSAndrew Geissler section in the Yocto Project Reference Manual. 8409209eecSAndrew Geissler 8509209eecSAndrew GeisslerUse Git to Clone Poky 8609209eecSAndrew Geissler===================== 8709209eecSAndrew Geissler 8809209eecSAndrew GeisslerOnce you complete the setup instructions for your machine, you need to 8909209eecSAndrew Geisslerget a copy of the Poky repository on your build host. Use the following 9009209eecSAndrew Geisslercommands to clone the Poky repository. 9109209eecSAndrew Geissler 9209209eecSAndrew Geissler.. code-block:: shell 9309209eecSAndrew Geissler 9409209eecSAndrew Geissler $ git clone git://git.yoctoproject.org/poky 9509209eecSAndrew Geissler Cloning into 'poky'... 9609209eecSAndrew Geissler remote: Counting 9709209eecSAndrew Geissler objects: 432160, done. remote: Compressing objects: 100% 9809209eecSAndrew Geissler (102056/102056), done. remote: Total 432160 (delta 323116), reused 9909209eecSAndrew Geissler 432037 (delta 323000) Receiving objects: 100% (432160/432160), 153.81 MiB | 8.54 MiB/s, done. 10009209eecSAndrew Geissler Resolving deltas: 100% (323116/323116), done. 10109209eecSAndrew Geissler Checking connectivity... done. 10209209eecSAndrew Geissler 1033b8a17c1SAndrew GeisslerGo to :yocto_wiki:`Releases wiki page </Releases>`, and choose a release 1043b8a17c1SAndrew Geisslercodename (such as ``&DISTRO_NAME_NO_CAP;``), corresponding to either the 1053b8a17c1SAndrew Geisslerlatest stable release or a Long Term Support release. 1063b8a17c1SAndrew Geissler 1073b8a17c1SAndrew GeisslerThen move to the ``poky`` directory and take a look at existing branches: 10809209eecSAndrew Geissler 10909209eecSAndrew Geissler.. code-block:: shell 11009209eecSAndrew Geissler 11109209eecSAndrew Geissler $ cd poky 1123b8a17c1SAndrew Geissler $ git branch -a 11309209eecSAndrew Geissler . 11409209eecSAndrew Geissler . 11509209eecSAndrew Geissler . 1163b8a17c1SAndrew Geissler remotes/origin/HEAD -> origin/master 1173b8a17c1SAndrew Geissler remotes/origin/dunfell 1183b8a17c1SAndrew Geissler remotes/origin/dunfell-next 1193b8a17c1SAndrew Geissler . 1203b8a17c1SAndrew Geissler . 1213b8a17c1SAndrew Geissler . 1223b8a17c1SAndrew Geissler remotes/origin/gatesgarth 1233b8a17c1SAndrew Geissler remotes/origin/gatesgarth-next 1243b8a17c1SAndrew Geissler . 1253b8a17c1SAndrew Geissler . 1263b8a17c1SAndrew Geissler . 1273b8a17c1SAndrew Geissler remotes/origin/master 1283b8a17c1SAndrew Geissler remotes/origin/master-next 1293b8a17c1SAndrew Geissler . 1303b8a17c1SAndrew Geissler . 1313b8a17c1SAndrew Geissler . 13209209eecSAndrew Geissler 1333b8a17c1SAndrew Geissler 1343b8a17c1SAndrew GeisslerFor this example, check out the ``&DISTRO_NAME_NO_CAP;`` branch based on the 1353b8a17c1SAndrew Geissler``&DISTRO_NAME;`` release: 13609209eecSAndrew Geissler 13709209eecSAndrew Geissler.. code-block:: shell 13809209eecSAndrew Geissler 1393b8a17c1SAndrew Geissler $ git checkout -t origin/&DISTRO_NAME_NO_CAP; -b my-&DISTRO_NAME_NO_CAP; 1403b8a17c1SAndrew Geissler Branch 'my-&DISTRO_NAME_NO_CAP;' set up to track remote branch '&DISTRO_NAME_NO_CAP;' from 'origin'. 1413b8a17c1SAndrew Geissler Switched to a new branch 'my-&DISTRO_NAME_NO_CAP;' 14209209eecSAndrew Geissler 14309209eecSAndrew GeisslerThe previous Git checkout command creates a local branch named 1443b8a17c1SAndrew Geissler``my-&DISTRO_NAME_NO_CAP;``. The files available to you in that branch 1453b8a17c1SAndrew Geisslerexactly match the repository's files in the ``&DISTRO_NAME_NO_CAP;`` 1463b8a17c1SAndrew Geisslerrelease branch. 1473b8a17c1SAndrew Geissler 1483b8a17c1SAndrew GeisslerNote that you can regularly type the following command in the same directory 1493b8a17c1SAndrew Geisslerto keep your local files in sync with the release branch: 1503b8a17c1SAndrew Geissler 1513b8a17c1SAndrew Geissler.. code-block:: shell 1523b8a17c1SAndrew Geissler 1533b8a17c1SAndrew Geissler $ git pull 15409209eecSAndrew Geissler 15509209eecSAndrew GeisslerFor more options and information about accessing Yocto Project related 15609209eecSAndrew Geisslerrepositories, see the 15709209eecSAndrew Geissler:ref:`dev-manual/start:locating yocto project source files` 15809209eecSAndrew Geisslersection in the Yocto Project Development Tasks Manual. 15909209eecSAndrew Geissler 16009209eecSAndrew GeisslerBuilding Your Image 16109209eecSAndrew Geissler=================== 16209209eecSAndrew Geissler 16309209eecSAndrew GeisslerUse the following steps to build your image. The build process creates 16409209eecSAndrew Geissleran entire Linux distribution, including the toolchain, from source. 16509209eecSAndrew Geissler 16609209eecSAndrew Geissler.. note:: 16709209eecSAndrew Geissler 16809209eecSAndrew Geissler - If you are working behind a firewall and your build host is not 16909209eecSAndrew Geissler set up for proxies, you could encounter problems with the build 17009209eecSAndrew Geissler process when fetching source code (e.g. fetcher failures or Git 17109209eecSAndrew Geissler failures). 17209209eecSAndrew Geissler 17309209eecSAndrew Geissler - If you do not know your proxy settings, consult your local network 17409209eecSAndrew Geissler infrastructure resources and get that information. A good starting 17509209eecSAndrew Geissler point could also be to check your web browser settings. Finally, 17609209eecSAndrew Geissler you can find more information on the 17709209eecSAndrew Geissler ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`" 17809209eecSAndrew Geissler page of the Yocto Project Wiki. 17909209eecSAndrew Geissler 18009209eecSAndrew Geissler#. **Initialize the Build Environment:** From within the ``poky`` 18109209eecSAndrew Geissler directory, run the :ref:`ref-manual/structure:\`\`oe-init-build-env\`\`` 18209209eecSAndrew Geissler environment 18309209eecSAndrew Geissler setup script to define Yocto Project's build environment on your 18409209eecSAndrew Geissler build host. 18509209eecSAndrew Geissler 18609209eecSAndrew Geissler .. code-block:: shell 18709209eecSAndrew Geissler 18895ac1b8dSAndrew Geissler $ cd poky 18909209eecSAndrew Geissler $ source oe-init-build-env 19009209eecSAndrew Geissler You had no conf/local.conf file. This configuration file has therefore been 19109209eecSAndrew Geissler created for you with some default values. You may wish to edit it to, for 19209209eecSAndrew Geissler example, select a different MACHINE (target hardware). See conf/local.conf 19309209eecSAndrew Geissler for more information as common configuration options are commented. 19409209eecSAndrew Geissler 19509209eecSAndrew Geissler You had no conf/bblayers.conf file. This configuration file has therefore 19609209eecSAndrew Geissler been created for you with some default values. To add additional metadata 19709209eecSAndrew Geissler layers into your configuration please add entries to conf/bblayers.conf. 19809209eecSAndrew Geissler 19909209eecSAndrew Geissler The Yocto Project has extensive documentation about OE including a reference 20009209eecSAndrew Geissler manual which can be found at: 20195ac1b8dSAndrew Geissler https://docs.yoctoproject.org 20209209eecSAndrew Geissler 20309209eecSAndrew Geissler For more information about OpenEmbedded see their website: 204213cb269SPatrick Williams https://www.openembedded.org/ 20509209eecSAndrew Geissler 20609209eecSAndrew Geissler ### Shell environment set up for builds. ### 20709209eecSAndrew Geissler 20809209eecSAndrew Geissler You can now run 'bitbake <target>' 20909209eecSAndrew Geissler 21009209eecSAndrew Geissler Common targets are: 21109209eecSAndrew Geissler core-image-minimal 212213cb269SPatrick Williams core-image-full-cmdline 21309209eecSAndrew Geissler core-image-sato 214213cb269SPatrick Williams core-image-weston 21509209eecSAndrew Geissler meta-toolchain 21609209eecSAndrew Geissler meta-ide-support 21709209eecSAndrew Geissler 2183b8a17c1SAndrew Geissler You can also run generated QEMU images with a command like 'runqemu qemux86-64' 21909209eecSAndrew Geissler 220213cb269SPatrick Williams Other commonly useful commands are: 221213cb269SPatrick Williams - 'devtool' and 'recipetool' handle common recipe tasks 222213cb269SPatrick Williams - 'bitbake-layers' handles common layer tasks 223213cb269SPatrick Williams - 'oe-pkgdata-util' handles common target package tasks 224213cb269SPatrick Williams 22509209eecSAndrew Geissler Among other things, the script creates the :term:`Build Directory`, which is 22609209eecSAndrew Geissler ``build`` in this case and is located in the :term:`Source Directory`. After 227*2390b1b6SPatrick Williams the script runs, your current working directory is set to the 228*2390b1b6SPatrick Williams :term:`Build Directory`. Later, when the build completes, the 229*2390b1b6SPatrick Williams :term:`Build Directory` contains all the files created during the build. 23009209eecSAndrew Geissler 23109209eecSAndrew Geissler#. **Examine Your Local Configuration File:** When you set up the build 23209209eecSAndrew Geissler environment, a local configuration file named ``local.conf`` becomes 233*2390b1b6SPatrick Williams available in a ``conf`` subdirectory of the :term:`Build Directory`. For this 23409209eecSAndrew Geissler example, the defaults are set to build for a ``qemux86`` target, 23509209eecSAndrew Geissler which is suitable for emulation. The package manager used is set to 23609209eecSAndrew Geissler the RPM package manager. 23709209eecSAndrew Geissler 23809209eecSAndrew Geissler .. tip:: 23909209eecSAndrew Geissler 24009209eecSAndrew Geissler You can significantly speed up your build and guard against fetcher 241595f6308SAndrew Geissler failures by using :ref:`overview-manual/concepts:shared state cache` 242595f6308SAndrew Geissler mirrors and enabling :ref:`overview-manual/concepts:hash equivalence`. 243595f6308SAndrew Geissler This way, you can use pre-built artifacts rather than building them. 244595f6308SAndrew Geissler This is relevant only when your network and the server that you use 245595f6308SAndrew Geissler can download these artifacts faster than you would be able to build them. 24609209eecSAndrew Geissler 24703907ee1SPatrick Williams To use such mirrors, uncomment the below lines in your ``conf/local.conf`` 248595f6308SAndrew Geissler file in the :term:`Build Directory`:: 24909209eecSAndrew Geissler 250595f6308SAndrew Geissler BB_SIGNATURE_HANDLER = "OEEquivHash" 251595f6308SAndrew Geissler BB_HASHSERVE = "auto" 252db4c27eeSPatrick Williams BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687" 253615f2f11SAndrew Geissler SSTATE_MIRRORS ?= "file://.* https://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH" 25409209eecSAndrew Geissler 25509209eecSAndrew Geissler#. **Start the Build:** Continue with the following command to build an OS 25609209eecSAndrew Geissler image for the target, which is ``core-image-sato`` in this example: 25709209eecSAndrew Geissler 25809209eecSAndrew Geissler .. code-block:: shell 25909209eecSAndrew Geissler 26009209eecSAndrew Geissler $ bitbake core-image-sato 26109209eecSAndrew Geissler 26209209eecSAndrew Geissler For information on using the ``bitbake`` command, see the 26309209eecSAndrew Geissler :ref:`overview-manual/concepts:bitbake` section in the Yocto Project Overview and 264213cb269SPatrick Williams Concepts Manual, or see 265213cb269SPatrick Williams :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-intro:the bitbake command` 266213cb269SPatrick Williams in the BitBake User Manual. 26709209eecSAndrew Geissler 26809209eecSAndrew Geissler#. **Simulate Your Image Using QEMU:** Once this particular image is 26909209eecSAndrew Geissler built, you can start QEMU, which is a Quick EMUlator that ships with 27009209eecSAndrew Geissler the Yocto Project: 27109209eecSAndrew Geissler 27209209eecSAndrew Geissler .. code-block:: shell 27309209eecSAndrew Geissler 27409209eecSAndrew Geissler $ runqemu qemux86-64 27509209eecSAndrew Geissler 27609209eecSAndrew Geissler If you want to learn more about running QEMU, see the 27709209eecSAndrew Geissler :ref:`dev-manual/qemu:using the quick emulator (qemu)` chapter in 27809209eecSAndrew Geissler the Yocto Project Development Tasks Manual. 27909209eecSAndrew Geissler 28009209eecSAndrew Geissler#. **Exit QEMU:** Exit QEMU by either clicking on the shutdown icon or by typing 28109209eecSAndrew Geissler ``Ctrl-C`` in the QEMU transcript window from which you evoked QEMU. 28209209eecSAndrew Geissler 28309209eecSAndrew GeisslerCustomizing Your Build for Specific Hardware 28409209eecSAndrew Geissler============================================ 28509209eecSAndrew Geissler 28609209eecSAndrew GeisslerSo far, all you have done is quickly built an image suitable for 28709209eecSAndrew Geissleremulation only. This section shows you how to customize your build for 28809209eecSAndrew Geisslerspecific hardware by adding a hardware layer into the Yocto Project 28909209eecSAndrew Geisslerdevelopment environment. 29009209eecSAndrew Geissler 29109209eecSAndrew GeisslerIn general, layers are repositories that contain related sets of 29209209eecSAndrew Geisslerinstructions and configurations that tell the Yocto Project what to do. 29309209eecSAndrew GeisslerIsolating related metadata into functionally specific layers facilitates 29409209eecSAndrew Geisslermodular development and makes it easier to reuse the layer metadata. 29509209eecSAndrew Geissler 29609209eecSAndrew Geissler.. note:: 29709209eecSAndrew Geissler 29809209eecSAndrew Geissler By convention, layer names start with the string "meta-". 29909209eecSAndrew Geissler 30009209eecSAndrew GeisslerFollow these steps to add a hardware layer: 30109209eecSAndrew Geissler 302ac69b488SWilliam A. Kennington III#. **Find a Layer:** Many hardware layers are available. The Yocto Project 30309209eecSAndrew Geissler :yocto_git:`Source Repositories <>` has many hardware layers. 30409209eecSAndrew Geissler This example adds the 30509209eecSAndrew Geissler `meta-altera <https://github.com/kraj/meta-altera>`__ hardware layer. 30609209eecSAndrew Geissler 30709209eecSAndrew Geissler#. **Clone the Layer:** Use Git to make a local copy of the layer on your 30809209eecSAndrew Geissler machine. You can put the copy in the top level of the copy of the 30909209eecSAndrew Geissler Poky repository created earlier: 31009209eecSAndrew Geissler 31109209eecSAndrew Geissler .. code-block:: shell 31209209eecSAndrew Geissler 31395ac1b8dSAndrew Geissler $ cd poky 31409209eecSAndrew Geissler $ git clone https://github.com/kraj/meta-altera.git 31509209eecSAndrew Geissler Cloning into 'meta-altera'... 31609209eecSAndrew Geissler remote: Counting objects: 25170, done. 31709209eecSAndrew Geissler remote: Compressing objects: 100% (350/350), done. 31809209eecSAndrew Geissler remote: Total 25170 (delta 645), reused 719 (delta 538), pack-reused 24219 31909209eecSAndrew Geissler Receiving objects: 100% (25170/25170), 41.02 MiB | 1.64 MiB/s, done. 32009209eecSAndrew Geissler Resolving deltas: 100% (13385/13385), done. 32109209eecSAndrew Geissler Checking connectivity... done. 32209209eecSAndrew Geissler 323ac69b488SWilliam A. Kennington III The hardware layer is now available 324ac69b488SWilliam A. Kennington III next to other layers inside the Poky reference repository on your build 32509209eecSAndrew Geissler host as ``meta-altera`` and contains all the metadata needed to 32609209eecSAndrew Geissler support hardware from Altera, which is owned by Intel. 32709209eecSAndrew Geissler 32809209eecSAndrew Geissler .. note:: 32909209eecSAndrew Geissler 33009209eecSAndrew Geissler It is recommended for layers to have a branch per Yocto Project release. 33109209eecSAndrew Geissler Please make sure to checkout the layer branch supporting the Yocto Project 33209209eecSAndrew Geissler release you're using. 33309209eecSAndrew Geissler 33409209eecSAndrew Geissler#. **Change the Configuration to Build for a Specific Machine:** The 33509209eecSAndrew Geissler :term:`MACHINE` variable in the 33609209eecSAndrew Geissler ``local.conf`` file specifies the machine for the build. For this 3370903674eSAndrew Geissler example, set the :term:`MACHINE` variable to ``cyclone5``. These 33809209eecSAndrew Geissler configurations are used: 33909209eecSAndrew Geissler https://github.com/kraj/meta-altera/blob/master/conf/machine/cyclone5.conf. 34009209eecSAndrew Geissler 34109209eecSAndrew Geissler .. note:: 34209209eecSAndrew Geissler 34309209eecSAndrew Geissler See the "Examine Your Local Configuration File" step earlier for more 34409209eecSAndrew Geissler information on configuring the build. 34509209eecSAndrew Geissler 34609209eecSAndrew Geissler#. **Add Your Layer to the Layer Configuration File:** Before you can use 34709209eecSAndrew Geissler a layer during a build, you must add it to your ``bblayers.conf`` 348*2390b1b6SPatrick Williams file, which is found in the :term:`Build Directory` ``conf`` directory. 34909209eecSAndrew Geissler 35009209eecSAndrew Geissler Use the ``bitbake-layers add-layer`` command to add the layer to the 35109209eecSAndrew Geissler configuration file: 35209209eecSAndrew Geissler 35309209eecSAndrew Geissler .. code-block:: shell 35409209eecSAndrew Geissler 35595ac1b8dSAndrew Geissler $ cd poky/build 35609209eecSAndrew Geissler $ bitbake-layers add-layer ../meta-altera 35709209eecSAndrew Geissler NOTE: Starting bitbake server... 35809209eecSAndrew Geissler Parsing recipes: 100% |##################################################################| Time: 0:00:32 35909209eecSAndrew Geissler Parsing of 918 .bb files complete (0 cached, 918 parsed). 1401 targets, 36009209eecSAndrew Geissler 123 skipped, 0 masked, 0 errors. 36109209eecSAndrew Geissler 36209209eecSAndrew Geissler You can find 36309209eecSAndrew Geissler more information on adding layers in the 36409209eecSAndrew Geissler :ref:`dev-manual/common-tasks:adding a layer using the \`\`bitbake-layers\`\` script` 36509209eecSAndrew Geissler section. 36609209eecSAndrew Geissler 36709209eecSAndrew GeisslerCompleting these steps has added the ``meta-altera`` layer to your Yocto 36809209eecSAndrew GeisslerProject development environment and configured it to build for the 36909209eecSAndrew Geissler``cyclone5`` machine. 37009209eecSAndrew Geissler 37109209eecSAndrew Geissler.. note:: 37209209eecSAndrew Geissler 37309209eecSAndrew Geissler The previous steps are for demonstration purposes only. If you were 37409209eecSAndrew Geissler to attempt to build an image for the ``cyclone5`` machine, you should 37509209eecSAndrew Geissler read the Altera ``README``. 37609209eecSAndrew Geissler 37709209eecSAndrew GeisslerCreating Your Own General Layer 37809209eecSAndrew Geissler=============================== 37909209eecSAndrew Geissler 38009209eecSAndrew GeisslerMaybe you have an application or specific set of behaviors you need to 38109209eecSAndrew Geisslerisolate. You can create your own general layer using the 38209209eecSAndrew Geissler``bitbake-layers create-layer`` command. The tool automates layer 38309209eecSAndrew Geisslercreation by setting up a subdirectory with a ``layer.conf`` 38409209eecSAndrew Geisslerconfiguration file, a ``recipes-example`` subdirectory that contains an 38509209eecSAndrew Geissler``example.bb`` recipe, a licensing file, and a ``README``. 38609209eecSAndrew Geissler 38709209eecSAndrew GeisslerThe following commands run the tool to create a layer named 38809209eecSAndrew Geissler``meta-mylayer`` in the ``poky`` directory: 38909209eecSAndrew Geissler 39009209eecSAndrew Geissler.. code-block:: shell 39109209eecSAndrew Geissler 39295ac1b8dSAndrew Geissler $ cd poky 39309209eecSAndrew Geissler $ bitbake-layers create-layer meta-mylayer 39409209eecSAndrew Geissler NOTE: Starting bitbake server... 39509209eecSAndrew Geissler Add your new layer with 'bitbake-layers add-layer meta-mylayer' 39609209eecSAndrew Geissler 39709209eecSAndrew GeisslerFor more information 39809209eecSAndrew Geissleron layers and how to create them, see the 39909209eecSAndrew Geissler:ref:`dev-manual/common-tasks:creating a general layer using the \`\`bitbake-layers\`\` script` 40009209eecSAndrew Geisslersection in the Yocto Project Development Tasks Manual. 40109209eecSAndrew Geissler 40209209eecSAndrew GeisslerWhere To Go Next 40309209eecSAndrew Geissler================ 40409209eecSAndrew Geissler 40509209eecSAndrew GeisslerNow that you have experienced using the Yocto Project, you might be 40609209eecSAndrew Geisslerasking yourself "What now?". The Yocto Project has many sources of 40709209eecSAndrew Geisslerinformation including the website, wiki pages, and user manuals: 40809209eecSAndrew Geissler 40909209eecSAndrew Geissler- **Website:** The :yocto_home:`Yocto Project Website <>` provides 41009209eecSAndrew Geissler background information, the latest builds, breaking news, full 41109209eecSAndrew Geissler development documentation, and access to a rich Yocto Project 41209209eecSAndrew Geissler Development Community into which you can tap. 41309209eecSAndrew Geissler 414d583833aSAndrew Geissler- **Video Seminar:** The `Introduction to the Yocto Project and BitBake, Part 1 4159aee5003SAndrew Geissler <https://youtu.be/yuE7my3KOpo>`__ and 416d583833aSAndrew Geissler `Introduction to the Yocto Project and BitBake, Part 2 4179aee5003SAndrew Geissler <https://youtu.be/iZ05TTyzGHk>`__ videos offer a video seminar 4189aee5003SAndrew Geissler introducing you to the most important aspects of developing a 4199aee5003SAndrew Geissler custom embedded Linux distribution with the Yocto Project. 42009209eecSAndrew Geissler 42109209eecSAndrew Geissler- **Yocto Project Overview and Concepts Manual:** The 42209209eecSAndrew Geissler :doc:`/overview-manual/index` is a great 42309209eecSAndrew Geissler place to start to learn about the Yocto Project. This manual 42409209eecSAndrew Geissler introduces you to the Yocto Project and its development environment. 42509209eecSAndrew Geissler The manual also provides conceptual information for various aspects 42609209eecSAndrew Geissler of the Yocto Project. 42709209eecSAndrew Geissler 42809209eecSAndrew Geissler- **Yocto Project Wiki:** The :yocto_wiki:`Yocto Project Wiki <>` 42909209eecSAndrew Geissler provides additional information on where to go next when ramping up 43009209eecSAndrew Geissler with the Yocto Project, release information, project planning, and QA 43109209eecSAndrew Geissler information. 43209209eecSAndrew Geissler 43309209eecSAndrew Geissler- **Yocto Project Mailing Lists:** Related mailing lists provide a forum 434ac69b488SWilliam A. Kennington III for discussion, patch submission and announcements. There are several 435ac69b488SWilliam A. Kennington III mailing lists grouped by topic. See the 43609209eecSAndrew Geissler :ref:`ref-manual/resources:mailing lists` 43709209eecSAndrew Geissler section in the Yocto Project Reference Manual for a complete list of 43809209eecSAndrew Geissler Yocto Project mailing lists. 43909209eecSAndrew Geissler 44009209eecSAndrew Geissler- **Comprehensive List of Links and Other Documentation:** The 44109209eecSAndrew Geissler :ref:`ref-manual/resources:links and related documentation` 44209209eecSAndrew Geissler section in the Yocto Project Reference Manual provides a 44309209eecSAndrew Geissler comprehensive list of all related links and other user documentation. 44409209eecSAndrew Geissler 44509209eecSAndrew Geissler.. include:: /boilerplate.rst 446