bsp.rst 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. **************************************************
  3. Board Support Packages (BSP) --- Developer's Guide
  4. **************************************************
  5. A Board Support Package (BSP) is a collection of information that
  6. defines how to support a particular hardware device, set of devices, or
  7. hardware platform. The BSP includes information about the hardware
  8. features present on the device and kernel configuration information
  9. along with any additional hardware drivers required. The BSP also lists
  10. any additional software components required in addition to a generic
  11. Linux software stack for both essential and optional platform features.
  12. This guide presents information about BSP layers, defines a structure
  13. for components so that BSPs follow a commonly understood layout,
  14. discusses how to customize a recipe for a BSP, addresses BSP licensing,
  15. and provides information that shows you how to create a BSP
  16. Layer using the :ref:`bitbake-layers <bsp-guide/bsp:Creating a new BSP Layer Using the \`\`bitbake-layers\`\` Script>`
  17. tool.
  18. BSP Layers
  19. ==========
  20. A BSP consists of a file structure inside a base directory.
  21. Collectively, you can think of the base directory, its file structure,
  22. and the contents as a BSP layer. Although not a strict requirement, BSP
  23. layers in the Yocto Project use the following well-established naming
  24. convention::
  25. meta-bsp_root_name
  26. The string "meta-" is prepended to the
  27. machine or platform name, which is "bsp_root_name" in the above form.
  28. .. note::
  29. Because the BSP layer naming convention is well-established, it is
  30. advisable to follow it when creating layers. Technically speaking, a
  31. BSP layer name does not need to start with ``meta-``.
  32. However, various scripts and tools in the Yocto Project development
  33. environment assume this convention.
  34. To help understand the BSP layer concept, consider the BSPs that the
  35. Yocto Project supports and provides with each release. You can see the
  36. layers in the
  37. :ref:`overview-manual/development-environment:yocto project source repositories`
  38. through
  39. a web interface at :yocto_git:`/`. If you go to that interface,
  40. you will find a list of repositories under "Yocto Metadata Layers".
  41. .. note::
  42. Layers that are no longer actively supported as part of the Yocto
  43. Project appear under the heading "Yocto Metadata Layer Archive."
  44. Each repository is a BSP layer supported by the Yocto Project (e.g.
  45. ``meta-raspberrypi`` and ``meta-intel``). Each of these layers is a
  46. repository unto itself and clicking on the layer name displays two URLs
  47. from which you can clone the layer's repository to your local system.
  48. Here is an example that clones the Raspberry Pi BSP layer::
  49. $ git clone git://git.yoctoproject.org/meta-raspberrypi
  50. In addition to BSP layers, the ``meta-yocto-bsp`` layer is part of the
  51. shipped ``poky`` repository. The ``meta-yocto-bsp`` layer maintains
  52. several "reference" BSPs including the ARM-based Beaglebone and generic
  53. versions of both 32-bit and 64-bit IA machines.
  54. For information on typical BSP development workflow, see the
  55. :ref:`bsp-guide/bsp:developing a board support package (bsp)`
  56. section. For more
  57. information on how to set up a local copy of source files from a Git
  58. repository, see the
  59. :ref:`dev-manual/start:locating yocto project source files`
  60. section in the Yocto Project Development Tasks Manual.
  61. The BSP layer's base directory (``meta-bsp_root_name``) is the root
  62. directory of that Layer. This directory is what you add to the
  63. :term:`BBLAYERS` variable in the
  64. ``conf/bblayers.conf`` file found in your
  65. :term:`Build Directory`, which is
  66. established after you run the OpenEmbedded build environment setup
  67. script (i.e. :ref:`ref-manual/structure:``oe-init-build-env```).
  68. Adding the root directory allows the :term:`OpenEmbedded Build System`
  69. to recognize the BSP
  70. layer and from it build an image. Here is an example::
  71. BBLAYERS ?= " \
  72. /usr/local/src/yocto/meta \
  73. /usr/local/src/yocto/meta-poky \
  74. /usr/local/src/yocto/meta-yocto-bsp \
  75. /usr/local/src/yocto/meta-mylayer \
  76. "
  77. .. note::
  78. Ordering and :term:`BBFILE_PRIORITY` for the layers listed in :term:`BBLAYERS`
  79. matter. For example, if multiple layers define a machine configuration, the
  80. OpenEmbedded build system uses the last layer searched given similar layer
  81. priorities. The build system works from the top-down through the layers
  82. listed in :term:`BBLAYERS`.
  83. Some BSPs require or depend on additional layers beyond the BSP's root
  84. layer in order to be functional. In this case, you need to specify these
  85. layers in the ``README`` "Dependencies" section of the BSP's root layer.
  86. Additionally, if any build instructions exist for the BSP, you must add
  87. them to the "Dependencies" section.
  88. Some layers function as a layer to hold other BSP layers. These layers
  89. are known as ":term:`container layers <Container Layer>`". An example of
  90. this type of layer is OpenEmbedded's :oe_git:`meta-openembedded </meta-openembedded>`
  91. layer. The ``meta-openembedded`` layer contains many ``meta-*`` layers.
  92. In cases like this, you need to include the names of the actual layers
  93. you want to work with, such as::
  94. BBLAYERS ?= " \
  95. /usr/local/src/yocto/meta \
  96. /usr/local/src/yocto/meta-poky \
  97. /usr/local/src/yocto/meta-yocto-bsp \
  98. /usr/local/src/yocto/meta-mylayer \
  99. .../meta-openembedded/meta-oe \
  100. .../meta-openembedded/meta-perl \
  101. .../meta-openembedded/meta-networking \
  102. "
  103. and so on.
  104. For more information on layers, see the
  105. ":ref:`dev-manual/layers:understanding and creating layers`"
  106. section of the Yocto Project Development Tasks Manual.
  107. Preparing Your Build Host to Work With BSP Layers
  108. =================================================
  109. This section describes how to get your build host ready to work with BSP
  110. layers. Once you have the host set up, you can create the layer as
  111. described in the
  112. ":ref:`bsp-guide/bsp:creating a new bsp layer using the \`\`bitbake-layers\`\` script`"
  113. section.
  114. .. note::
  115. For structural information on BSPs, see the
  116. :ref:`bsp-guide/bsp:example filesystem layout` section.
  117. #. *Set Up the Build Environment:* Be sure you are set up to use BitBake
  118. in a shell. See the ":ref:`dev-manual/start:preparing the build host`"
  119. section in the Yocto Project Development Tasks Manual for information on how
  120. to get a build host ready that is either a native Linux machine or a machine
  121. that uses CROPS.
  122. #. *Clone the poky Repository:* You need to have a local copy of the
  123. Yocto Project :term:`Source Directory` (i.e. a local
  124. ``poky`` repository). See the
  125. ":ref:`dev-manual/start:cloning the \`\`poky\`\` repository`" and
  126. possibly the
  127. ":ref:`dev-manual/start:checking out by branch in poky`" or
  128. ":ref:`dev-manual/start:checking out by tag in poky`"
  129. sections
  130. all in the Yocto Project Development Tasks Manual for information on
  131. how to clone the ``poky`` repository and check out the appropriate
  132. branch for your work.
  133. #. *Determine the BSP Layer You Want:* The Yocto Project supports many
  134. BSPs, which are maintained in their own layers or in layers designed
  135. to contain several BSPs. To get an idea of machine support through
  136. BSP layers, you can look at the
  137. :yocto_dl:`index of machines </releases/yocto/&DISTRO_REL_LATEST_TAG;/machines>`
  138. for the release.
  139. #. *Optionally Clone the meta-intel BSP Layer:* If your hardware is
  140. based on current Intel CPUs and devices, you can leverage this BSP
  141. layer. For details on the ``meta-intel`` BSP layer, see the layer's
  142. :yocto_git:`README </meta-intel/tree/README>` file.
  143. #. *Navigate to Your Source Directory:* Typically, you set up the
  144. ``meta-intel`` Git repository inside the :term:`Source Directory` (e.g.
  145. ``poky``). ::
  146. $ cd /home/you/poky
  147. #. *Clone the Layer:* ::
  148. $ git clone git://git.yoctoproject.org/meta-intel.git
  149. Cloning into 'meta-intel'...
  150. remote: Counting objects: 15585, done.
  151. remote: Compressing objects: 100% (5056/5056), done.
  152. remote: Total 15585 (delta 9123), reused 15329 (delta 8867)
  153. Receiving objects: 100% (15585/15585), 4.51 MiB | 3.19 MiB/s, done.
  154. Resolving deltas: 100% (9123/9123), done.
  155. Checking connectivity... done.
  156. #. *Check Out the Proper Branch:* The branch you check out for
  157. ``meta-intel`` must match the same branch you are using for the
  158. Yocto Project release (e.g. ``&DISTRO_NAME_NO_CAP;``)::
  159. $ cd meta-intel
  160. $ git checkout -b &DISTRO_NAME_NO_CAP; remotes/origin/&DISTRO_NAME_NO_CAP;
  161. Branch &DISTRO_NAME_NO_CAP; set up to track remote branch
  162. &DISTRO_NAME_NO_CAP; from origin.
  163. Switched to a new branch '&DISTRO_NAME_NO_CAP;'
  164. .. note::
  165. To see the available branch names in a cloned repository, use the ``git
  166. branch -al`` command. See the
  167. ":ref:`dev-manual/start:checking out by branch in poky`"
  168. section in the Yocto Project Development Tasks Manual for more
  169. information.
  170. #. *Optionally Set Up an Alternative BSP Layer:* If your hardware can be
  171. more closely leveraged to an existing BSP not within the
  172. ``meta-intel`` BSP layer, you can clone that BSP layer.
  173. The process is identical to the process used for the ``meta-intel``
  174. layer except for the layer's name. For example, if you determine that
  175. your hardware most closely matches the ``meta-raspberrypi``, clone
  176. that layer::
  177. $ git clone git://git.yoctoproject.org/meta-raspberrypi
  178. Cloning into 'meta-raspberrypi'...
  179. remote: Counting objects: 4743, done.
  180. remote: Compressing objects: 100% (2185/2185), done.
  181. remote: Total 4743 (delta 2447), reused 4496 (delta 2258)
  182. Receiving objects: 100% (4743/4743), 1.18 MiB | 0 bytes/s, done.
  183. Resolving deltas: 100% (2447/2447), done.
  184. Checking connectivity... done.
  185. #. *Initialize the Build Environment:* While in the root directory of
  186. the Source Directory (i.e. ``poky``), run the
  187. :ref:`ref-manual/structure:``oe-init-build-env``` environment
  188. setup script to define the OpenEmbedded build environment on your
  189. build host. ::
  190. $ source oe-init-build-env
  191. Among other things, the script creates the :term:`Build Directory`, which is
  192. ``build`` in this case and is located in the :term:`Source Directory`. After
  193. the script runs, your current working directory is set to the ``build``
  194. directory.
  195. Example Filesystem Layout
  196. =========================
  197. Defining a common BSP directory structure allows end-users to understand
  198. and become familiar with that standard. A common format also encourages
  199. standardization of software support for hardware.
  200. The proposed form described in this section does have elements that are
  201. specific to the OpenEmbedded build system. It is intended that
  202. developers can use this structure with other build systems besides the
  203. OpenEmbedded build system. It is also intended that it will be simple
  204. to extract information and convert it to other formats if required. The
  205. OpenEmbedded build system, through its standard :ref:`layers mechanism
  206. <overview-manual/yp-intro:the yocto project layer model>`, can
  207. directly accept the format described as a layer. The BSP layer captures
  208. all the hardware-specific details in one place using a standard format,
  209. which is useful for any person wishing to use the hardware platform
  210. regardless of the build system they are using.
  211. The BSP specification does not include a build system or other tools -
  212. the specification is concerned with the hardware-specific components
  213. only. At the end-distribution point, you can ship the BSP layer combined
  214. with a build system and other tools. Realize that it is important to
  215. maintain the distinction that the BSP layer, a build system, and tools
  216. are separate components that could be combined in certain end products.
  217. Before looking at the recommended form for the directory structure
  218. inside a BSP layer, you should be aware that there are some requirements
  219. in order for a BSP layer to be considered compliant with the Yocto
  220. Project. For that list of requirements, see the
  221. ":ref:`bsp-guide/bsp:released bsp requirements`" section.
  222. Below is the typical directory structure for a BSP layer. While this
  223. basic form represents the standard, realize that the actual layout for
  224. individual BSPs could differ. ::
  225. meta-bsp_root_name/
  226. meta-bsp_root_name/bsp_license_file
  227. meta-bsp_root_name/README
  228. meta-bsp_root_name/README.sources
  229. meta-bsp_root_name/binary/bootable_images
  230. meta-bsp_root_name/conf/layer.conf
  231. meta-bsp_root_name/conf/machine/*.conf
  232. meta-bsp_root_name/recipes-bsp/*
  233. meta-bsp_root_name/recipes-core/*
  234. meta-bsp_root_name/recipes-graphics/*
  235. meta-bsp_root_name/recipes-kernel/linux/linux-yocto_kernel_rev.bbappend
  236. Below is an example of the Raspberry Pi BSP layer that is available from
  237. the :yocto_git:`Source Repositories <>`:
  238. .. code-block:: none
  239. meta-raspberrypi/COPYING.MIT
  240. meta-raspberrypi/README.md
  241. meta-raspberrypi/classes
  242. meta-raspberrypi/classes/sdcard_image-rpi.bbclass
  243. meta-raspberrypi/conf/
  244. meta-raspberrypi/conf/layer.conf
  245. meta-raspberrypi/conf/machine/
  246. meta-raspberrypi/conf/machine/raspberrypi-cm.conf
  247. meta-raspberrypi/conf/machine/raspberrypi-cm3.conf
  248. meta-raspberrypi/conf/machine/raspberrypi.conf
  249. meta-raspberrypi/conf/machine/raspberrypi0-wifi.conf
  250. meta-raspberrypi/conf/machine/raspberrypi0.conf
  251. meta-raspberrypi/conf/machine/raspberrypi2.conf
  252. meta-raspberrypi/conf/machine/raspberrypi3-64.conf
  253. meta-raspberrypi/conf/machine/raspberrypi3.conf
  254. meta-raspberrypi/conf/machine/include
  255. meta-raspberrypi/conf/machine/include/rpi-base.inc
  256. meta-raspberrypi/conf/machine/include/rpi-default-providers.inc
  257. meta-raspberrypi/conf/machine/include/rpi-default-settings.inc
  258. meta-raspberrypi/conf/machine/include/rpi-default-versions.inc
  259. meta-raspberrypi/conf/machine/include/tune-arm1176jzf-s.inc
  260. meta-raspberrypi/docs
  261. meta-raspberrypi/docs/Makefile
  262. meta-raspberrypi/docs/conf.py
  263. meta-raspberrypi/docs/contributing.md
  264. meta-raspberrypi/docs/extra-apps.md
  265. meta-raspberrypi/docs/extra-build-config.md
  266. meta-raspberrypi/docs/index.rst
  267. meta-raspberrypi/docs/layer-contents.md
  268. meta-raspberrypi/docs/readme.md
  269. meta-raspberrypi/files
  270. meta-raspberrypi/files/custom-licenses
  271. meta-raspberrypi/files/custom-licenses/Broadcom
  272. meta-raspberrypi/recipes-bsp
  273. meta-raspberrypi/recipes-bsp/bootfiles
  274. meta-raspberrypi/recipes-bsp/bootfiles/bcm2835-bootfiles.bb
  275. meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb
  276. meta-raspberrypi/recipes-bsp/common
  277. meta-raspberrypi/recipes-bsp/common/firmware.inc
  278. meta-raspberrypi/recipes-bsp/formfactor
  279. meta-raspberrypi/recipes-bsp/formfactor/formfactor
  280. meta-raspberrypi/recipes-bsp/formfactor/formfactor/raspberrypi
  281. meta-raspberrypi/recipes-bsp/formfactor/formfactor/raspberrypi/machconfig
  282. meta-raspberrypi/recipes-bsp/formfactor/formfactor_%.bbappend
  283. meta-raspberrypi/recipes-bsp/rpi-u-boot-src
  284. meta-raspberrypi/recipes-bsp/rpi-u-boot-src/files
  285. meta-raspberrypi/recipes-bsp/rpi-u-boot-src/files/boot.cmd.in
  286. meta-raspberrypi/recipes-bsp/rpi-u-boot-src/rpi-u-boot-scr.bb
  287. meta-raspberrypi/recipes-bsp/u-boot
  288. meta-raspberrypi/recipes-bsp/u-boot/u-boot
  289. meta-raspberrypi/recipes-bsp/u-boot/u-boot/*.patch
  290. meta-raspberrypi/recipes-bsp/u-boot/u-boot_%.bbappend
  291. meta-raspberrypi/recipes-connectivity
  292. meta-raspberrypi/recipes-connectivity/bluez5
  293. meta-raspberrypi/recipes-connectivity/bluez5/bluez5
  294. meta-raspberrypi/recipes-connectivity/bluez5/bluez5/*.patch
  295. meta-raspberrypi/recipes-connectivity/bluez5/bluez5/BCM43430A1.hcd
  296. meta-raspberrypi/recipes-connectivity/bluez5/bluez5brcm43438.service
  297. meta-raspberrypi/recipes-connectivity/bluez5/bluez5_%.bbappend
  298. meta-raspberrypi/recipes-core
  299. meta-raspberrypi/recipes-core/images
  300. meta-raspberrypi/recipes-core/images/rpi-basic-image.bb
  301. meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb
  302. meta-raspberrypi/recipes-core/images/rpi-test-image.bb
  303. meta-raspberrypi/recipes-core/packagegroups
  304. meta-raspberrypi/recipes-core/packagegroups/packagegroup-rpi-test.bb
  305. meta-raspberrypi/recipes-core/psplash
  306. meta-raspberrypi/recipes-core/psplash/files
  307. meta-raspberrypi/recipes-core/psplash/files/psplash-raspberrypi-img.h
  308. meta-raspberrypi/recipes-core/psplash/psplash_git.bbappend
  309. meta-raspberrypi/recipes-core/udev
  310. meta-raspberrypi/recipes-core/udev/udev-rules-rpi
  311. meta-raspberrypi/recipes-core/udev/udev-rules-rpi/99-com.rules
  312. meta-raspberrypi/recipes-core/udev/udev-rules-rpi.bb
  313. meta-raspberrypi/recipes-devtools
  314. meta-raspberrypi/recipes-devtools/bcm2835
  315. meta-raspberrypi/recipes-devtools/bcm2835/bcm2835_1.52.bb
  316. meta-raspberrypi/recipes-devtools/pi-blaster
  317. meta-raspberrypi/recipes-devtools/pi-blaster/files
  318. meta-raspberrypi/recipes-devtools/pi-blaster/files/*.patch
  319. meta-raspberrypi/recipes-devtools/pi-blaster/pi-blaster_git.bb
  320. meta-raspberrypi/recipes-devtools/python
  321. meta-raspberrypi/recipes-devtools/python/python-rtimu
  322. meta-raspberrypi/recipes-devtools/python/python-rtimu/*.patch
  323. meta-raspberrypi/recipes-devtools/python/python-rtimu_git.bb
  324. meta-raspberrypi/recipes-devtools/python/python-sense-hat_2.2.0.bb
  325. meta-raspberrypi/recipes-devtools/python/rpi-gpio
  326. meta-raspberrypi/recipes-devtools/python/rpi-gpio/*.patch
  327. meta-raspberrypi/recipes-devtools/python/rpi-gpio_0.6.3.bb
  328. meta-raspberrypi/recipes-devtools/python/rpio
  329. meta-raspberrypi/recipes-devtools/python/rpio/*.patch
  330. meta-raspberrypi/recipes-devtools/python/rpio_0.10.0.bb
  331. meta-raspberrypi/recipes-devtools/wiringPi
  332. meta-raspberrypi/recipes-devtools/wiringPi/files
  333. meta-raspberrypi/recipes-devtools/wiringPi/files/*.patch
  334. meta-raspberrypi/recipes-devtools/wiringPi/wiringpi_git.bb
  335. meta-raspberrypi/recipes-graphics
  336. meta-raspberrypi/recipes-graphics/eglinfo
  337. meta-raspberrypi/recipes-graphics/eglinfo/eglinfo-fb_%.bbappend
  338. meta-raspberrypi/recipes-graphics/eglinfo/eglinfo-x11_%.bbappend
  339. meta-raspberrypi/recipes-graphics/mesa
  340. meta-raspberrypi/recipes-graphics/mesa/mesa-gl_%.bbappend
  341. meta-raspberrypi/recipes-graphics/mesa/mesa_%.bbappend
  342. meta-raspberrypi/recipes-graphics/userland
  343. meta-raspberrypi/recipes-graphics/userland/userland
  344. meta-raspberrypi/recipes-graphics/userland/userland/*.patch
  345. meta-raspberrypi/recipes-graphics/userland/userland_git.bb
  346. meta-raspberrypi/recipes-graphics/vc-graphics
  347. meta-raspberrypi/recipes-graphics/vc-graphics/files
  348. meta-raspberrypi/recipes-graphics/vc-graphics/files/egl.pc
  349. meta-raspberrypi/recipes-graphics/vc-graphics/files/vchiq.sh
  350. meta-raspberrypi/recipes-graphics/vc-graphics/vc-graphics-hardfp.bb
  351. meta-raspberrypi/recipes-graphics/vc-graphics/vc-graphics.bb
  352. meta-raspberrypi/recipes-graphics/vc-graphics/vc-graphics.inc
  353. meta-raspberrypi/recipes-graphics/wayland
  354. meta-raspberrypi/recipes-graphics/wayland/weston_%.bbappend
  355. meta-raspberrypi/recipes-graphics/xorg-xserver
  356. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config
  357. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi
  358. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf
  359. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d
  360. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/10-evdev.conf
  361. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf
  362. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf
  363. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
  364. meta-raspberrypi/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
  365. meta-raspberrypi/recipes-kernel
  366. meta-raspberrypi/recipes-kernel/linux-firmware
  367. meta-raspberrypi/recipes-kernel/linux-firmware/files
  368. meta-raspberrypi/recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.bin
  369. meta-raspberrypi/recipes-kernel/linux-firmware/files/brcfmac43430-sdio.txt
  370. meta-raspberrypi/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
  371. meta-raspberrypi/recipes-kernel/linux
  372. meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi-dev.bb
  373. meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi.inc
  374. meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.14.bb
  375. meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
  376. meta-raspberrypi/recipes-multimedia
  377. meta-raspberrypi/recipes-multimedia/gstreamer
  378. meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-omx
  379. meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-omx/*.patch
  380. meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-omx_%.bbappend
  381. meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
  382. meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12
  383. meta-raspberrypi/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/*.patch
  384. meta-raspberrypi/recipes-multimedia/omxplayer
  385. meta-raspberrypi/recipes-multimedia/omxplayer/omxplayer
  386. meta-raspberrypi/recipes-multimedia/omxplayer/omxplayer/*.patch
  387. meta-raspberrypi/recipes-multimedia/omxplayer/omxplayer_git.bb
  388. meta-raspberrypi/recipes-multimedia/x264
  389. meta-raspberrypi/recipes-multimedia/x264/x264_git.bbappend
  390. meta-raspberrypi/wic meta-raspberrypi/wic/sdimage-raspberrypi.wks
  391. The following sections describe each part of the proposed BSP format.
  392. License Files
  393. -------------
  394. You can find these files in the BSP Layer at::
  395. meta-bsp_root_name/bsp_license_file
  396. These optional files satisfy licensing requirements for the BSP. The
  397. type or types of files here can vary depending on the licensing
  398. requirements. For example, in the Raspberry Pi BSP, all licensing
  399. requirements are handled with the ``COPYING.MIT`` file.
  400. Licensing files can be MIT, BSD, GPLv*, and so forth. These files are
  401. recommended for the BSP but are optional and totally up to the BSP
  402. developer. For information on how to maintain license compliance, see
  403. the ":ref:`dev-manual/licenses:maintaining open source license compliance during your product's lifecycle`"
  404. section in the Yocto Project Development Tasks Manual.
  405. README File
  406. -----------
  407. You can find this file in the BSP Layer at::
  408. meta-bsp_root_name/README
  409. This file provides information on how to boot the live images that are
  410. optionally included in the ``binary/`` directory. The ``README`` file
  411. also provides information needed for building the image.
  412. At a minimum, the ``README`` file must contain a list of dependencies,
  413. such as the names of any other layers on which the BSP depends and the
  414. name of the BSP maintainer with his or her contact information.
  415. README.sources File
  416. -------------------
  417. You can find this file in the BSP Layer at::
  418. meta-bsp_root_name/README.sources
  419. This file provides information on where to locate the BSP source files
  420. used to build the images (if any) that reside in
  421. ``meta-bsp_root_name/binary``. Images in the ``binary`` would be images
  422. released with the BSP. The information in the ``README.sources`` file
  423. also helps you find the :term:`Metadata`
  424. used to generate the images that ship with the BSP.
  425. .. note::
  426. If the BSP's ``binary`` directory is missing or the directory has no images, an
  427. existing ``README.sources`` file is meaningless and usually does not exist.
  428. Pre-built User Binaries
  429. -----------------------
  430. You can find these files in the BSP Layer at::
  431. meta-bsp_root_name/binary/bootable_images
  432. This optional area contains useful pre-built kernels and user-space
  433. filesystem images released with the BSP that are appropriate to the
  434. target system. This directory typically contains graphical (e.g. Sato)
  435. and minimal live images when the BSP tarball has been created and made
  436. available in the :yocto_home:`Yocto Project <>` website. You can
  437. use these kernels and images to get a system running and quickly get
  438. started on development tasks.
  439. The exact types of binaries present are highly hardware-dependent. The
  440. :ref:`README <bsp-guide/bsp:readme file>` file should be present in the
  441. BSP Layer and it explains how to use the images with the target
  442. hardware. Additionally, the
  443. :ref:`README.sources <bsp-guide/bsp:readme.sources file>` file should be
  444. present to locate the sources used to build the images and provide
  445. information on the Metadata.
  446. Layer Configuration File
  447. ------------------------
  448. You can find this file in the BSP Layer at::
  449. meta-bsp_root_name/conf/layer.conf
  450. The ``conf/layer.conf`` file identifies the file structure as a layer,
  451. identifies the contents of the layer, and contains information about how
  452. the build system should use it. Generally, a standard boilerplate file
  453. such as the following works. In the following example, you would replace
  454. "bsp" with the actual name of the BSP (i.e. "bsp_root_name" from the example
  455. template). ::
  456. # We have a conf and classes directory, add to BBPATH
  457. BBPATH .= ":${LAYERDIR}"
  458. # We have a recipes directory containing .bb and .bbappend files, add to BBFILES
  459. BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
  460. ${LAYERDIR}/recipes-*/*/*.bbappend"
  461. BBFILE_COLLECTIONS += "bsp"
  462. BBFILE_PATTERN_bsp = "^${LAYERDIR}/"
  463. BBFILE_PRIORITY_bsp = "6"
  464. LAYERDEPENDS_bsp = "intel"
  465. To illustrate the string substitutions, here are the corresponding
  466. statements from the Raspberry Pi ``conf/layer.conf`` file::
  467. # We have a conf and classes directory, append to BBPATH
  468. BBPATH .= ":${LAYERDIR}"
  469. # We have a recipes directory containing .bb and .bbappend files, add to BBFILES
  470. BBFILES += "${LAYERDIR}/recipes*/*/*.bb \
  471. ${LAYERDIR}/recipes*/*/*.bbappend"
  472. BBFILE_COLLECTIONS += "raspberrypi"
  473. BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/"
  474. BBFILE_PRIORITY_raspberrypi = "9"
  475. # Additional license directories.
  476. LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"
  477. .
  478. .
  479. .
  480. This file simply makes :term:`BitBake` aware of the recipes and configuration
  481. directories. The file must exist so that the OpenEmbedded build system can
  482. recognize the BSP.
  483. Hardware Configuration Options
  484. ------------------------------
  485. You can find these files in the BSP Layer at::
  486. meta-bsp_root_name/conf/machine/*.conf
  487. The machine files bind together all the information contained elsewhere
  488. in the BSP into a format that the build system can understand. Each BSP
  489. Layer requires at least one machine file. If the BSP supports multiple
  490. machines, multiple machine configuration files can exist. These
  491. filenames correspond to the values to which users have set the
  492. :term:`MACHINE` variable.
  493. These files define things such as the kernel package to use
  494. (:term:`PREFERRED_PROVIDER` of
  495. :ref:`virtual/kernel <dev-manual/new-recipe:using virtual providers>`),
  496. the hardware drivers to include in different types of images, any
  497. special software components that are needed, any bootloader information,
  498. and also any special image format requirements.
  499. This configuration file could also include a hardware "tuning" file that
  500. is commonly used to define the package architecture and specify
  501. optimization flags, which are carefully chosen to give best performance
  502. on a given processor.
  503. Tuning files are found in the ``meta/conf/machine/include`` directory
  504. within the :term:`Source Directory`.
  505. For example, many ``tune-*`` files (e.g. ``tune-arm1136jf-s.inc``,
  506. ``tune-1586-nlp.inc``, and so forth) reside in the
  507. ``poky/meta/conf/machine/include`` directory.
  508. To use an include file, you simply include them in the machine
  509. configuration file. For example, the Raspberry Pi BSP
  510. ``raspberrypi3.conf`` contains the following statement::
  511. include conf/machine/include/rpi-base.inc
  512. Miscellaneous BSP-Specific Recipe Files
  513. ---------------------------------------
  514. You can find these files in the BSP Layer at::
  515. meta-bsp_root_name/recipes-bsp/*
  516. This optional directory contains miscellaneous recipe files for the BSP.
  517. Most notably would be the formfactor files. For example, in the
  518. Raspberry Pi BSP, there is the ``formfactor_%.bbappend`` file, which
  519. is an append file used to augment the recipe that starts the build.
  520. Furthermore, there are machine-specific settings used during the build
  521. that are defined by the ``machconfig`` file further down in the
  522. directory. Here is the ``machconfig`` file for the Raspberry Pi BSP::
  523. HAVE_TOUCHSCREEN=0
  524. HAVE_KEYBOARD=1
  525. DISPLAY_CAN_ROTATE=0
  526. DISPLAY_ORIENTATION=0
  527. DISPLAY_DPI=133
  528. .. note::
  529. If a BSP does not have a formfactor entry, defaults are established
  530. according to the formfactor configuration file that is installed by
  531. the main formfactor recipe
  532. ``meta/recipes-bsp/formfactor/formfactor_0.0.bb``, which is found in
  533. the :term:`Source Directory`.
  534. Display Support Files
  535. ---------------------
  536. You can find these files in the BSP Layer at::
  537. meta-bsp_root_name/recipes-graphics/*
  538. This optional directory contains recipes for the BSP if it has special
  539. requirements for graphics support. All files that are needed for the BSP
  540. to support a display are kept here.
  541. Linux Kernel Configuration
  542. --------------------------
  543. You can find these files in the BSP Layer at::
  544. meta-bsp_root_name/recipes-kernel/linux/linux*.bbappend
  545. meta-bsp_root_name/recipes-kernel/linux/*.bb
  546. Append files (``*.bbappend``) modify the main kernel recipe being used
  547. to build the image. The ``*.bb`` files would be a developer-supplied
  548. kernel recipe. This area of the BSP hierarchy can contain both these
  549. types of files although, in practice, it is likely that you would have
  550. one or the other.
  551. For your BSP, you typically want to use an existing Yocto Project kernel
  552. recipe found in the :term:`Source Directory`
  553. at
  554. ``meta/recipes-kernel/linux``. You can append machine-specific changes
  555. to the kernel recipe by using a similarly named append file, which is
  556. located in the BSP Layer for your target device (e.g. the
  557. ``meta-bsp_root_name/recipes-kernel/linux`` directory).
  558. Suppose you are using the ``linux-yocto_4.4.bb`` recipe to build the
  559. kernel. In other words, you have selected the kernel in your
  560. ``"bsp_root_name".conf`` file by adding
  561. :term:`PREFERRED_PROVIDER` and :term:`PREFERRED_VERSION`
  562. statements as follows::
  563. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  564. PREFERRED_VERSION_linux-yocto ?= "4.4%"
  565. .. note::
  566. When the preferred provider is assumed by default, the :term:`PREFERRED_PROVIDER`
  567. statement does not appear in the ``"bsp_root_name".conf`` file.
  568. You would use the ``linux-yocto_4.4.bbappend`` file to append specific
  569. BSP settings to the kernel, thus configuring the kernel for your
  570. particular BSP.
  571. You can find more information on what your append file should contain in
  572. the ":ref:`kernel-dev/common:creating the append file`" section
  573. in the Yocto Project Linux Kernel Development Manual.
  574. An alternate scenario is when you create your own kernel recipe for the
  575. BSP. A good example of this is the Raspberry Pi BSP. If you examine the
  576. ``recipes-kernel/linux`` directory you see the following::
  577. linux-raspberrypi-dev.bb
  578. linux-raspberrypi.inc
  579. linux-raspberrypi_4.14.bb
  580. linux-raspberrypi_4.9.bb
  581. The directory contains three kernel recipes and a common include file.
  582. Developing a Board Support Package (BSP)
  583. ========================================
  584. This section describes the high-level procedure you can follow to create
  585. a BSP. Although not required for BSP creation, the ``meta-intel``
  586. repository, which contains many BSPs supported by the Yocto Project, is
  587. part of the example.
  588. For an example that shows how to create a new layer using the tools, see
  589. the ":ref:`bsp-guide/bsp:creating a new bsp layer using the \`\`bitbake-layers\`\` script`"
  590. section.
  591. The following illustration and list summarize the BSP creation general
  592. workflow.
  593. .. image:: figures/bsp-dev-flow.png
  594. :align: center
  595. :width: 70%
  596. #. *Set up Your Host Development System to Support Development Using the
  597. Yocto Project*: See the ":ref:`dev-manual/start:preparing the build host`"
  598. section in the Yocto Project Development Tasks Manual for options on how to
  599. get a system ready to use the Yocto Project.
  600. #. *Establish the meta-intel Repository on Your System:* Having
  601. local copies of these supported BSP layers on your system gives you
  602. access to layers you might be able to leverage when creating your
  603. BSP. For information on how to get these files, see the
  604. ":ref:`bsp-guide/bsp:preparing your build host to work with bsp layers`"
  605. section.
  606. #. *Create Your Own BSP Layer Using the bitbake-layers Script:*
  607. Layers are ideal for isolating and storing work for a given piece of
  608. hardware. A layer is really just a location or area in which you
  609. place the recipes and configurations for your BSP. In fact, a BSP is,
  610. in itself, a special type of layer. The simplest way to create a new
  611. BSP layer that is compliant with the Yocto Project is to use the
  612. ``bitbake-layers`` script. For information about that script, see the
  613. ":ref:`bsp-guide/bsp:creating a new bsp layer using the \`\`bitbake-layers\`\` script`"
  614. section.
  615. Another example that illustrates a layer is an application. Suppose
  616. you are creating an application that has library or other
  617. dependencies in order for it to compile and run. The layer, in this
  618. case, would be where all the recipes that define those dependencies
  619. are kept. The key point for a layer is that it is an isolated area
  620. that contains all the relevant information for the project that the
  621. OpenEmbedded build system knows about. For more information on
  622. layers, see the ":ref:`overview-manual/yp-intro:the yocto project layer model`"
  623. section in the Yocto Project Overview and Concepts Manual. You can also
  624. reference the ":ref:`dev-manual/layers:understanding and creating layers`"
  625. section in the Yocto Project Development Tasks Manual. For more
  626. information on BSP layers, see the ":ref:`bsp-guide/bsp:bsp layers`"
  627. section.
  628. .. note::
  629. - There are three hardware reference BSPs in the Yocto
  630. Project release, located in the ``poky/meta-yocto-bsp``
  631. BSP layer:
  632. - Texas Instruments Beaglebone (``beaglebone-yocto``)
  633. - Two generic IA platforms (``genericx86`` and ``genericx86-64``)
  634. When you set up a layer for a new BSP, you should follow a standard
  635. layout. This layout is described in the ":ref:`bsp-guide/bsp:example filesystem layout`"
  636. section. In the standard layout, notice
  637. the suggested structure for recipes and configuration information.
  638. You can see the standard layout for a BSP by examining any supported
  639. BSP found in the ``meta-intel`` layer inside the Source Directory.
  640. #. *Make Configuration Changes to Your New BSP Layer:* The standard BSP
  641. layer structure organizes the files you need to edit in ``conf`` and
  642. several ``recipes-*`` directories within the BSP layer. Configuration
  643. changes identify where your new layer is on the local system and
  644. identifies the kernel you are going to use. When you run the
  645. ``bitbake-layers`` script, you are able to interactively configure
  646. many things for the BSP (e.g. keyboard, touchscreen, and so forth).
  647. #. *Make Recipe Changes to Your New BSP Layer:* Recipe changes include
  648. altering recipes (``*.bb`` files), removing recipes you do not use,
  649. and adding new recipes or append files (``.bbappend``) that support
  650. your hardware.
  651. #. *Prepare for the Build:* Once you have made all the changes to your
  652. BSP layer, there remains a few things you need to do for the
  653. OpenEmbedded build system in order for it to create your image. You
  654. need to get the build environment ready by sourcing an environment
  655. setup script (i.e. ``oe-init-build-env``) and you need to be sure two
  656. key configuration files are configured appropriately: the
  657. ``conf/local.conf`` and the ``conf/bblayers.conf`` file. You must
  658. make the OpenEmbedded build system aware of your new layer. See the
  659. ":ref:`dev-manual/layers:enabling your layer`"
  660. section in the Yocto Project Development Tasks Manual for information
  661. on how to let the build system know about your new layer.
  662. #. *Build the Image:* The OpenEmbedded build system uses the BitBake
  663. tool to build images based on the type of image you want to create.
  664. You can find more information about BitBake in the
  665. :doc:`BitBake User Manual <bitbake:index>`.
  666. The build process supports several types of images to satisfy
  667. different needs. See the
  668. ":ref:`ref-manual/images:Images`" chapter in the Yocto
  669. Project Reference Manual for information on supported images.
  670. Requirements and Recommendations for Released BSPs
  671. ==================================================
  672. This section describes requirements and recommendations for a released
  673. BSP to be considered compliant with the Yocto Project.
  674. Released BSP Requirements
  675. -------------------------
  676. Before looking at BSP requirements, you should consider the following:
  677. - The requirements here assume the BSP layer is a well-formed, "legal"
  678. layer that can be added to the Yocto Project. For guidelines on
  679. creating a layer that meets these base requirements, see the
  680. ":ref:`bsp-guide/bsp:bsp layers`" section in this manual and the
  681. ":ref:`dev-manual/layers:understanding and creating layers`"
  682. section in the Yocto Project Development Tasks Manual.
  683. - The requirements in this section apply regardless of how you package
  684. a BSP. You should consult the packaging and distribution guidelines
  685. for your specific release process. For an example of packaging and
  686. distribution requirements, see the ":yocto_wiki:`Third Party BSP Release
  687. Process </Third_Party_BSP_Release_Process>`"
  688. wiki page.
  689. - The requirements for the BSP as it is made available to a developer
  690. are completely independent of the released form of the BSP. For
  691. example, the BSP Metadata can be contained within a Git repository
  692. and could have a directory structure completely different from what
  693. appears in the officially released BSP layer.
  694. - It is not required that specific packages or package modifications
  695. exist in the BSP layer, beyond the requirements for general
  696. compliance with the Yocto Project. For example, there is no requirement
  697. dictating that a specific kernel or kernel version be used in a given
  698. BSP.
  699. The requirements for a released BSP that conform to the Yocto Project are:
  700. - *Layer Name:* The BSP must have a layer name that follows the Yocto
  701. Project standards. For information on BSP layer names, see the
  702. ":ref:`bsp-guide/bsp:bsp layers`" section.
  703. - *File System Layout:* When possible, use the same directory names in
  704. your BSP layer as listed in the ``recipes.txt`` file, which is found
  705. in ``poky/meta`` directory of the :term:`Source Directory`
  706. or in the OpenEmbedded-Core Layer (``openembedded-core``) at
  707. :oe_git:`/openembedded-core/tree/meta`.
  708. You should place recipes (``*.bb`` files) and recipe modifications
  709. (``*.bbappend`` files) into ``recipes-*`` subdirectories by
  710. functional area as outlined in ``recipes.txt``. If you cannot find a
  711. category in ``recipes.txt`` to fit a particular recipe, you can make
  712. up your own ``recipes-*`` subdirectory.
  713. Within any particular ``recipes-*`` category, the layout should match
  714. what is found in the OpenEmbedded-Core Git repository
  715. (``openembedded-core``) or the Source Directory (``poky``). In other
  716. words, make sure you place related files in appropriately-related
  717. ``recipes-*`` subdirectories specific to the recipe's function, or
  718. within a subdirectory containing a set of closely-related recipes.
  719. The recipes themselves should follow the general guidelines for
  720. recipes found in the ":doc:`../contributor-guide/recipe-style-guide`"
  721. in the Yocto Project and OpenEmbedded Contributor Guide.
  722. - *License File:* You must include a license file in the
  723. ``meta-bsp_root_name`` directory. This license covers the BSP
  724. Metadata as a whole. You must specify which license to use since no
  725. default license exists. See the
  726. :yocto_git:`COPYING.MIT </meta-raspberrypi/tree/COPYING.MIT>`
  727. file for the Raspberry Pi BSP in the ``meta-raspberrypi`` BSP layer
  728. as an example.
  729. - *README File:* You must include a ``README`` file in the
  730. ``meta-bsp_root_name`` directory. See the
  731. :yocto_git:`README.md </meta-raspberrypi/tree/README.md>`
  732. file for the Raspberry Pi BSP in the ``meta-raspberrypi`` BSP layer
  733. as an example.
  734. At a minimum, the ``README`` file should contain the following:
  735. - A brief description of the target hardware.
  736. - A list of all the dependencies of the BSP. These dependencies are
  737. typically a list of required layers needed to build the BSP.
  738. However, the dependencies should also contain information
  739. regarding any other dependencies the BSP might have.
  740. - Any required special licensing information. For example, this
  741. information includes information on special variables needed to
  742. satisfy a EULA, or instructions on information needed to build or
  743. distribute binaries built from the BSP Metadata.
  744. - The name and contact information for the BSP layer maintainer.
  745. This is the person to whom patches and questions should be sent.
  746. For information on how to find the right person, see the
  747. :doc:`../contributor-guide/submit-changes` section in the Yocto Project and
  748. OpenEmbedded Contributor Guide.
  749. - Instructions on how to build the BSP using the BSP layer.
  750. - Instructions on how to boot the BSP build from the BSP layer.
  751. - Instructions on how to boot the binary images contained in the
  752. ``binary`` directory, if present.
  753. - Information on any known bugs or issues that users should know
  754. about when either building or booting the BSP binaries.
  755. - *README.sources File:* If your BSP contains binary images in the
  756. ``binary`` directory, you must include a ``README.sources`` file in
  757. the ``meta-bsp_root_name`` directory. This file specifies exactly
  758. where you can find the sources used to generate the binary images.
  759. - *Layer Configuration File:* You must include a ``conf/layer.conf``
  760. file in the ``meta-bsp_root_name`` directory. This file identifies
  761. the ``meta-bsp_root_name`` BSP layer as a layer to the build
  762. system.
  763. - *Machine Configuration File:* You must include one or more
  764. ``conf/machine/bsp_root_name.conf`` files in the
  765. ``meta-bsp_root_name`` directory. These configuration files define
  766. machine targets that can be built using the BSP layer. Multiple
  767. machine configuration files define variations of machine
  768. configurations that the BSP supports. If a BSP supports multiple
  769. machine variations, you need to adequately describe each variation in
  770. the BSP ``README`` file. Do not use multiple machine configuration
  771. files to describe disparate hardware. If you do have very different
  772. targets, you should create separate BSP layers for each target.
  773. .. note::
  774. It is completely possible for a developer to structure the working
  775. repository as a conglomeration of unrelated BSP files, and to possibly
  776. generate BSPs targeted for release from that directory using scripts or
  777. some other mechanism (e.g. ``meta-yocto-bsp`` layer). Such considerations
  778. are outside the scope of this document.
  779. Released BSP Recommendations
  780. ----------------------------
  781. Here are recommendations for released BSPs that conform to the
  782. Yocto Project:
  783. - *Bootable Images:* Released BSPs can contain one or more bootable
  784. images. Including bootable images allows users to easily try out the
  785. BSP using their own hardware.
  786. In some cases, it might not be convenient to include a bootable
  787. image. If so, you might want to make two versions of the BSP
  788. available: one that contains binary images, and one that does not.
  789. The version that does not contain bootable images avoids unnecessary
  790. download times for users not interested in the images.
  791. If you need to distribute a BSP and include bootable images or build
  792. kernel and filesystems meant to allow users to boot the BSP for
  793. evaluation purposes, you should put the images and artifacts within a
  794. ``binary/`` subdirectory located in the ``meta-bsp_root_name``
  795. directory.
  796. .. note::
  797. If you do include a bootable image as part of the BSP and the
  798. image was built by software covered by the GPL or other open
  799. source licenses, it is your responsibility to understand and meet
  800. all licensing requirements, which could include distribution of
  801. source files.
  802. - *Use a Yocto Linux Kernel:* Kernel recipes in the BSP should be based
  803. on a Yocto Linux kernel. Basing your recipes on these kernels reduces
  804. the costs for maintaining the BSP and increases its scalability. See
  805. the ``Yocto Linux Kernel`` category in the
  806. :yocto_git:`Source Repositories <>` for these kernels.
  807. Customizing a Recipe for a BSP
  808. ==============================
  809. If you plan on customizing a recipe for a particular BSP, you need to do
  810. the following:
  811. - Create a ``*.bbappend`` file for the modified recipe. For information on using
  812. append files, see the
  813. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  814. section in the Yocto Project Development Tasks Manual.
  815. - Ensure your directory structure in the BSP layer that supports your
  816. machine is such that the OpenEmbedded build system can find it. See
  817. the example later in this section for more information.
  818. - Put the append file in a directory whose name matches the machine's
  819. name and is located in an appropriate sub-directory inside the BSP
  820. layer (i.e. ``recipes-bsp``, ``recipes-graphics``, ``recipes-core``,
  821. and so forth).
  822. - Place the BSP-specific files in the proper directory inside the BSP
  823. layer. How expansive the layer is affects where you must place these
  824. files. For example, if your layer supports several different machine
  825. types, you need to be sure your layer's directory structure includes
  826. hierarchy that separates the files according to machine. If your
  827. layer does not support multiple machines, the layer would not have
  828. that additional hierarchy and the files would obviously not be able
  829. to reside in a machine-specific directory.
  830. Here is a specific example to help you better understand the
  831. process. This example customizes a recipe by adding a
  832. BSP-specific configuration file named ``interfaces`` to the
  833. ``init-ifupdown_1.0.bb`` recipe for machine "xyz" where the BSP layer
  834. also supports several other machines:
  835. #. Edit the ``init-ifupdown_1.0.bbappend`` file so that it contains the
  836. following::
  837. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  838. The append file needs to be in the ``meta-xyz/recipes-core/init-ifupdown``
  839. directory.
  840. #. Create and place the new ``interfaces`` configuration file in the
  841. BSP's layer here::
  842. meta-xyz/recipes-core/init-ifupdown/files/xyz-machine-one/interfaces
  843. .. note::
  844. If the ``meta-xyz`` layer did not support multiple machines, you would place
  845. the interfaces configuration file in the layer here::
  846. meta-xyz/recipes-core/init-ifupdown/files/interfaces
  847. The :term:`FILESEXTRAPATHS` variable in the append files extends the search
  848. path the build system uses to find files during the build. Consequently, for
  849. this example you need to have the ``files`` directory in the same location as
  850. your append file.
  851. BSP Licensing Considerations
  852. ============================
  853. In some cases, a BSP contains separately-licensed Intellectual Property
  854. (IP) for a component or components. For these cases, you are required to
  855. accept the terms of a commercial or other type of license that requires
  856. some kind of explicit End User License Agreement (EULA). Once you accept
  857. the license, the OpenEmbedded build system can then build and include
  858. the corresponding component in the final BSP image. If the BSP is
  859. available as a pre-built image, you can download the image after
  860. agreeing to the license or EULA.
  861. You could find that some separately-licensed components that are
  862. essential for normal operation of the system might not have an
  863. unencumbered (or free) substitute. Without these essential components,
  864. the system would be non-functional. Then again, you might find that
  865. other licensed components that are simply 'good-to-have' or purely
  866. elective do have an unencumbered, free replacement component that you
  867. can use rather than agreeing to the separately-licensed component. Even
  868. for components essential to the system, you might find an unencumbered
  869. component that is not identical but will work as a less-capable version
  870. of the licensed version in the BSP recipe.
  871. For cases where you can substitute a free component and still maintain
  872. the system's functionality, the "DOWNLOADS" selection from the
  873. "SOFTWARE" tab on the :yocto_home:`Yocto Project Website <>` makes
  874. available de-featured BSPs that are completely free of any IP
  875. encumbrances. For these cases, you can use the substitution directly and
  876. without any further licensing requirements. If present, these fully
  877. de-featured BSPs are named appropriately different as compared to the
  878. names of their respective encumbered BSPs. If available, these
  879. substitutions are your simplest and most preferred options. Obviously,
  880. use of these substitutions assumes the resulting functionality meets
  881. system requirements.
  882. .. note::
  883. If however, a non-encumbered version is unavailable or it provides
  884. unsuitable functionality or quality, you can use an encumbered
  885. version.
  886. There are two different methods within the OpenEmbedded build system to
  887. satisfy the licensing requirements for an encumbered BSP. The following
  888. list describes them in order of preference:
  889. #. *Use the LICENSE_FLAGS Variable to Define the Recipes that Have Commercial or
  890. Other Types of Specially-Licensed Packages:* For each of those recipes, you can
  891. specify a matching license string in a ``local.conf`` variable named
  892. :term:`LICENSE_FLAGS_ACCEPTED`.
  893. Specifying the matching license string signifies that you agree to
  894. the license. Thus, the build system can build the corresponding
  895. recipe and include the component in the image. See the
  896. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  897. section in the Yocto Project Development Tasks Manual for details on
  898. how to use these variables.
  899. If you build as you normally would, without specifying any recipes in
  900. the :term:`LICENSE_FLAGS_ACCEPTED` variable, the build stops and provides
  901. you with the list of recipes that you have tried to include in the image
  902. that need entries in the :term:`LICENSE_FLAGS_ACCEPTED` variable. Once you
  903. enter the appropriate license flags into it, restart the build to continue
  904. where it left off. During the build, the prompt will not appear again since
  905. you have satisfied the requirement.
  906. Once the appropriate license flags are on the white list in the
  907. :term:`LICENSE_FLAGS_ACCEPTED` variable, you can build the encumbered
  908. image with no change at all to the normal build process.
  909. #. *Get a Pre-Built Version of the BSP:* You can get this type of BSP by
  910. selecting the "DOWNLOADS" item from the "SOFTWARE" tab on the
  911. :yocto_home:`Yocto Project website <>`. You can download BSP tarballs
  912. that contain proprietary components after agreeing to the licensing
  913. requirements of each of the individually encumbered packages as part
  914. of the download process. Obtaining the BSP this way allows you to
  915. access an encumbered image immediately after agreeing to the
  916. click-through license agreements presented by the website. If you
  917. want to build the image yourself using the recipes contained within
  918. the BSP tarball, you will still need to create an appropriate
  919. :term:`LICENSE_FLAGS_ACCEPTED` to match the encumbered recipes in the
  920. BSP.
  921. .. note::
  922. Pre-compiled images are bundled with a time-limited kernel that runs
  923. for a predetermined amount of time (10 days) before it forces the
  924. system to reboot. This limitation is meant to discourage direct
  925. redistribution of the image. You must eventually rebuild the image if
  926. you want to remove this restriction.
  927. Creating a new BSP Layer Using the ``bitbake-layers`` Script
  928. ============================================================
  929. The ``bitbake-layers create-layer`` script automates creating a BSP
  930. layer. What makes a layer a "BSP layer" is the presence of at least one
  931. machine configuration file. Additionally, a BSP layer usually has a
  932. kernel recipe or an append file that leverages off an existing kernel
  933. recipe. The primary requirement, however, is the machine configuration.
  934. Use these steps to create a BSP layer:
  935. - *Create a General Layer:* Use the ``bitbake-layers`` script with the
  936. ``create-layer`` subcommand to create a new general layer. For
  937. instructions on how to create a general layer using the
  938. ``bitbake-layers`` script, see the
  939. ":ref:`dev-manual/layers:creating a general layer using the \`\`bitbake-layers\`\` script`"
  940. section in the Yocto Project Development Tasks Manual.
  941. - *Create a Layer Configuration File:* Every layer needs a layer
  942. configuration file. This configuration file establishes locations for
  943. the layer's recipes, priorities for the layer, and so forth. You can
  944. find examples of ``layer.conf`` files in the Yocto Project
  945. :yocto_git:`Source Repositories <>`. To get examples of what you need
  946. in your configuration file, locate a layer (e.g. "meta-ti") and
  947. examine the
  948. :yocto_git:`local.conf </meta-ti/tree/meta-ti-bsp/conf/layer.conf>`
  949. file.
  950. - *Create a Machine Configuration File:* Create a
  951. ``conf/machine/bsp_root_name.conf`` file. See
  952. :yocto_git:`meta-yocto-bsp/conf/machine </poky/tree/meta-yocto-bsp/conf/machine>`
  953. for sample ``bsp_root_name.conf`` files. There are other samples such as
  954. :yocto_git:`meta-ti </meta-ti/tree/meta-ti-bsp/conf/machine>`
  955. and
  956. :yocto_git:`meta-freescale </meta-freescale/tree/conf/machine>`
  957. from other vendors that have more specific machine and tuning
  958. examples.
  959. - *Create a Kernel Recipe:* Create a kernel recipe in
  960. ``recipes-kernel/linux`` by either using a kernel append file or a
  961. new custom kernel recipe file (e.g. ``linux-yocto_4.12.bb``). The BSP
  962. layers mentioned in the previous step also contain different kernel
  963. examples. See the ":ref:`kernel-dev/common:modifying an existing recipe`"
  964. section in the Yocto Project Linux Kernel Development Manual for
  965. information on how to create a custom kernel.
  966. The remainder of this section provides a description of the Yocto
  967. Project reference BSP for Beaglebone, which resides in the
  968. :yocto_git:`meta-yocto-bsp </poky/tree/meta-yocto-bsp>`
  969. layer.
  970. BSP Layer Configuration Example
  971. -------------------------------
  972. The layer's ``conf`` directory contains the ``layer.conf`` configuration
  973. file. In this example, the ``conf/layer.conf`` file is the following::
  974. # We have a conf and classes directory, add to BBPATH
  975. BBPATH .= ":${LAYERDIR}"
  976. # We have a recipes directory containing .bb and .bbappend files, add to BBFILES
  977. BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
  978. ${LAYERDIR}/recipes-*/*/*.bbappend"
  979. BBFILE_COLLECTIONS += "yoctobsp"
  980. BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
  981. BBFILE_PRIORITY_yoctobsp = "5"
  982. LAYERVERSION_yoctobsp = "4"
  983. LAYERSERIES_COMPAT_yoctobsp = "&DISTRO_NAME_NO_CAP;"
  984. The variables used in this file configure the layer. A good way to learn about layer
  985. configuration files is to examine various files for BSP from the
  986. :yocto_git:`Source Repositories <>`.
  987. For a detailed description of this particular layer configuration file,
  988. see ":ref:`step 3 <dev-manual/layers:creating your own layer>`"
  989. in the discussion that describes how to create layers in the Yocto
  990. Project Development Tasks Manual.
  991. BSP Machine Configuration Example
  992. ---------------------------------
  993. As mentioned earlier in this section, the existence of a machine
  994. configuration file is what makes a layer a BSP layer as compared to a
  995. general or kernel layer.
  996. There are one or more machine configuration files in the
  997. ``bsp_layer/conf/machine/`` directory of the layer::
  998. bsp_layer/conf/machine/machine1\.conf
  999. bsp_layer/conf/machine/machine2\.conf
  1000. bsp_layer/conf/machine/machine3\.conf
  1001. ... more ...
  1002. For example, the machine configuration file for the `BeagleBone and
  1003. BeagleBone Black development boards <https://beagleboard.org/bone>`__ is
  1004. located in :yocto_git:`poky/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
  1005. </poky/tree/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf>`::
  1006. #@TYPE: Machine
  1007. #@NAME: Beaglebone-yocto machine
  1008. #@DESCRIPTION: Reference machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards
  1009. PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
  1010. MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
  1011. EXTRA_IMAGEDEPENDS += "virtual/bootloader"
  1012. DEFAULTTUNE ?= "cortexa8hf-neon"
  1013. include conf/machine/include/arm/armv7a/tune-cortexa8.inc
  1014. IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
  1015. EXTRA_IMAGECMD:jffs2 = "-lnp "
  1016. WKS_FILE ?= "beaglebone-yocto.wks"
  1017. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
  1018. do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
  1019. SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
  1020. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  1021. PREFERRED_VERSION_linux-yocto ?= "6.1%"
  1022. KERNEL_IMAGETYPE = "zImage"
  1023. KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
  1024. KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
  1025. PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
  1026. SPL_BINARY = "MLO"
  1027. UBOOT_SUFFIX = "img"
  1028. UBOOT_MACHINE = "am335x_evm_defconfig"
  1029. UBOOT_ENTRYPOINT = "0x80008000"
  1030. UBOOT_LOADADDRESS = "0x80008000"
  1031. MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
  1032. IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${KERNEL_DEVICETREE}"
  1033. # support runqemu
  1034. EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
  1035. IMAGE_CLASSES += "qemuboot"
  1036. QB_DEFAULT_FSTYPE = "wic"
  1037. QB_FSINFO = "wic:no-kernel-in-fs"
  1038. QB_KERNEL_ROOT = "/dev/vda2"
  1039. QB_SYSTEM_NAME = "qemu-system-arm"
  1040. QB_MACHINE = "-machine virt"
  1041. QB_CPU = "-cpu cortex-a15"
  1042. QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 systemd.mask=systemd-networkd"
  1043. QB_OPT_APPEND = "-device virtio-rng-device"
  1044. QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
  1045. QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
  1046. QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
  1047. QB_SERIAL_OPT = ""
  1048. QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
  1049. The variables used to configure the machine define machine-specific properties; for
  1050. example, machine-dependent packages, machine tunings, the type of kernel
  1051. to build, and U-Boot configurations.
  1052. The following list provides some explanation for the statements found in
  1053. the example reference machine configuration file for the BeagleBone
  1054. development boards. Realize that much more can be defined as part of a
  1055. machine's configuration file. In general, you can learn about related
  1056. variables that this example does not have by locating the variables in
  1057. the ":ref:`ref-manual/variables:variables glossary`" in the Yocto
  1058. Project Reference Manual.
  1059. - :term:`PREFERRED_PROVIDER_virtual/xserver <PREFERRED_PROVIDER>`:
  1060. The recipe that provides "virtual/xserver" when more than one
  1061. provider is found. In this case, the recipe that provides
  1062. "virtual/xserver" is "xserver-xorg", available in
  1063. ``poky/meta/recipes-graphics/xorg-xserver``.
  1064. - :term:`MACHINE_EXTRA_RRECOMMENDS`:
  1065. A list of machine-dependent packages not essential for booting the
  1066. image. Thus, the build does not fail if the packages do not exist.
  1067. However, the packages are required for a fully-featured image.
  1068. .. tip::
  1069. There are many ``MACHINE*`` variables that help you configure a particular piece
  1070. of hardware.
  1071. - :term:`EXTRA_IMAGEDEPENDS`:
  1072. Recipes to build that do not provide packages for installing into the
  1073. root filesystem but building the image depends on the recipes.
  1074. Sometimes a recipe is required to build the final image but is not
  1075. needed in the root filesystem. In this case, the U-Boot recipe must
  1076. be built for the image.
  1077. At the end of the file, we also use this setings to implement
  1078. ``runqemu`` support on the host machine.
  1079. - :term:`DEFAULTTUNE`: Machines
  1080. use tunings to optimize machine, CPU, and application performance.
  1081. These features, which are collectively known as "tuning features",
  1082. are set in the :term:`OpenEmbedded-Core (OE-Core)` layer. In this
  1083. example, the default tuning file is :oe_git:`tune-cortexa8
  1084. </openembedded-core/tree/meta/conf/machine/include/arm/armv7a/tune-cortexa8.inc>`.
  1085. .. note::
  1086. The include statement that pulls in the
  1087. ``conf/machine/include/arm/tune-cortexa8.inc`` file provides many tuning
  1088. possibilities.
  1089. - :term:`IMAGE_FSTYPES`: The
  1090. formats the OpenEmbedded build system uses during the build when
  1091. creating the root filesystem. In this example, four types of images
  1092. are supported.
  1093. - :term:`EXTRA_IMAGECMD`:
  1094. Specifies additional options for image creation commands. In this
  1095. example, the "-lnp " option is used when creating the
  1096. :wikipedia:`JFFS2 <JFFS2>` image.
  1097. - :term:`WKS_FILE`: The location of
  1098. the :ref:`Wic kickstart <ref-manual/kickstart:openembedded kickstart (\`\`.wks\`\`) reference>` file used
  1099. by the OpenEmbedded build system to create a partitioned image.
  1100. - ``do_image_wic[depends]``: A task that is constructed during the
  1101. build. In this example, the task depends on specific tools in order
  1102. to create the sysroot when building a Wic image.
  1103. - :term:`SERIAL_CONSOLES`:
  1104. Defines a serial console (TTY) to enable using getty. In this case,
  1105. the baud rate is "115200" and the device name is "ttyO0".
  1106. - :term:`PREFERRED_PROVIDER_virtual/kernel <PREFERRED_PROVIDER>`:
  1107. Specifies the recipe that provides "virtual/kernel" when more than
  1108. one provider is found. In this case, the recipe that provides
  1109. "virtual/kernel" is "linux-yocto", which exists in the layer's
  1110. ``recipes-kernel/linux`` directory.
  1111. - :term:`PREFERRED_VERSION_linux-yocto <PREFERRED_VERSION>`:
  1112. Defines the version of the recipe used to build the kernel, which is
  1113. "6.1" in this case.
  1114. - :term:`KERNEL_IMAGETYPE`:
  1115. The type of kernel to build for the device. In this case, the
  1116. OpenEmbedded build system creates a "zImage" image type.
  1117. - :term:`KERNEL_DEVICETREE`:
  1118. The names of the generated Linux kernel device trees (i.e. the
  1119. ``*.dtb``) files. All the device trees for the various BeagleBone
  1120. devices are included.
  1121. - :term:`KERNEL_EXTRA_ARGS`:
  1122. Additional ``make`` command-line arguments the OpenEmbedded build
  1123. system passes on when compiling the kernel. In this example,
  1124. ``LOADADDR=${UBOOT_ENTRYPOINT}`` is passed as a command-line argument.
  1125. - :term:`SPL_BINARY`: Defines the
  1126. Secondary Program Loader (SPL) binary type. In this case, the SPL
  1127. binary is set to "MLO", which stands for Multimedia card LOader.
  1128. The BeagleBone development board requires an SPL to boot and that SPL
  1129. file type must be MLO. Consequently, the machine configuration needs
  1130. to define :term:`SPL_BINARY` as ``MLO``.
  1131. .. note::
  1132. For more information on how the SPL variables are used, see the
  1133. :yocto_git:`u-boot.inc </poky/tree/meta/recipes-bsp/u-boot/u-boot.inc>`
  1134. include file.
  1135. - :term:`UBOOT_* <UBOOT_ENTRYPOINT>`: Defines
  1136. various U-Boot configurations needed to build a U-Boot image. In this
  1137. example, a U-Boot image is required to boot the BeagleBone device.
  1138. See the following variables for more information:
  1139. - :term:`UBOOT_SUFFIX`:
  1140. Points to the generated U-Boot extension.
  1141. - :term:`UBOOT_MACHINE`:
  1142. Specifies the value passed on the make command line when building
  1143. a U-Boot image.
  1144. - :term:`UBOOT_ENTRYPOINT`:
  1145. Specifies the entry point for the U-Boot image.
  1146. - :term:`UBOOT_LOADADDRESS`:
  1147. Specifies the load address for the U-Boot image.
  1148. - :term:`MACHINE_FEATURES`:
  1149. Specifies the list of hardware features the BeagleBone device is
  1150. capable of supporting. In this case, the device supports "usbgadget
  1151. usbhost vfat alsa".
  1152. - :term:`IMAGE_BOOT_FILES`:
  1153. Files installed into the device's boot partition when preparing the
  1154. image using the Wic tool with the ``bootimg-partition`` or
  1155. ``bootimg-efi`` source plugin.
  1156. BSP Kernel Recipe Example
  1157. -------------------------
  1158. The kernel recipe used to build the kernel image for the BeagleBone
  1159. device was established in the machine configuration::
  1160. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  1161. PREFERRED_VERSION_linux-yocto ?= "6.1%"
  1162. The ``meta-yocto-bsp/recipes-kernel/linux`` directory in the layer contains
  1163. metadata used to build the kernel. In this case, a kernel append file
  1164. (i.e. ``linux-yocto_6.1.bbappend``) is used to override an established
  1165. kernel recipe (i.e. ``linux-yocto_6.1.bb``), which is located in
  1166. :yocto_git:`/poky/tree/meta/recipes-kernel/linux`.
  1167. The contents of the append file are::
  1168. KBRANCH:genericx86 = "v6.1/standard/base"
  1169. KBRANCH:genericx86-64 = "v6.1/standard/base"
  1170. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  1171. KMACHINE:genericx86 ?= "common-pc"
  1172. KMACHINE:genericx86-64 ?= "common-pc-64"
  1173. KMACHINE:beaglebone-yocto ?= "beaglebone"
  1174. SRCREV_machine:genericx86 ?= "6ec439b4b456ce929c4c07fe457b5d6a4b468e86"
  1175. SRCREV_machine:genericx86-64 ?= "6ec439b4b456ce929c4c07fe457b5d6a4b468e86"
  1176. SRCREV_machine:beaglebone-yocto ?= "423e1996694b61fbfc8ec3bf062fc6461d64fde1"
  1177. COMPATIBLE_MACHINE:genericx86 = "genericx86"
  1178. COMPATIBLE_MACHINE:genericx86-64 = "genericx86-64"
  1179. COMPATIBLE_MACHINE:beaglebone-yocto = "beaglebone-yocto"
  1180. LINUX_VERSION:genericx86 = "6.1.30"
  1181. LINUX_VERSION:genericx86-64 = "6.1.30"
  1182. LINUX_VERSION:beaglebone-yocto = "6.1.20"
  1183. This particular append file works for all the machines that are
  1184. part of the ``meta-yocto-bsp`` layer. The relevant statements are
  1185. appended with the "beaglebone-yocto" string. The OpenEmbedded build
  1186. system uses these statements to override similar statements in the
  1187. kernel recipe:
  1188. - :term:`KBRANCH`: Identifies the
  1189. kernel branch that is validated, patched, and configured during the
  1190. build.
  1191. - :term:`KMACHINE`: Identifies the
  1192. machine name as known by the kernel, which is sometimes a different
  1193. name than what is known by the OpenEmbedded build system.
  1194. - :term:`SRCREV`: Identifies the
  1195. revision of the source code used to build the image.
  1196. - :term:`COMPATIBLE_MACHINE`:
  1197. A regular expression that resolves to one or more target machines
  1198. with which the recipe is compatible.
  1199. - :term:`LINUX_VERSION`: The
  1200. Linux version from kernel.org used by the OpenEmbedded build system
  1201. to build the kernel image.