bsp.rst 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509
  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, MIPS-based
  53. EdgeRouter, and generic 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-openbedded </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/yocto-&DISTRO;/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_0.0.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_0.0.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 four 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. - Ubiquiti Networks EdgeRouter Lite (``edgerouter``)
  634. - Two general IA platforms (``genericx86`` and ``genericx86-64``)
  635. - There are three core Intel BSPs in the Yocto Project
  636. release, in the ``meta-intel`` layer:
  637. - ``intel-core2-32``, which is a BSP optimized for the Core2
  638. family of CPUs as well as all CPUs prior to the Silvermont
  639. core.
  640. - ``intel-corei7-64``, which is a BSP optimized for Nehalem
  641. and later Core and Xeon CPUs as well as Silvermont and later
  642. Atom CPUs, such as the Baytrail SoCs.
  643. - ``intel-quark``, which is a BSP optimized for the Intel
  644. Galileo gen1 & gen2 development boards.
  645. When you set up a layer for a new BSP, you should follow a standard
  646. layout. This layout is described in the ":ref:`bsp-guide/bsp:example filesystem layout`"
  647. section. In the standard layout, notice
  648. the suggested structure for recipes and configuration information.
  649. You can see the standard layout for a BSP by examining any supported
  650. BSP found in the ``meta-intel`` layer inside the Source Directory.
  651. #. *Make Configuration Changes to Your New BSP Layer:* The standard BSP
  652. layer structure organizes the files you need to edit in ``conf`` and
  653. several ``recipes-*`` directories within the BSP layer. Configuration
  654. changes identify where your new layer is on the local system and
  655. identifies the kernel you are going to use. When you run the
  656. ``bitbake-layers`` script, you are able to interactively configure
  657. many things for the BSP (e.g. keyboard, touchscreen, and so forth).
  658. #. *Make Recipe Changes to Your New BSP Layer:* Recipe changes include
  659. altering recipes (``*.bb`` files), removing recipes you do not use,
  660. and adding new recipes or append files (``.bbappend``) that support
  661. your hardware.
  662. #. *Prepare for the Build:* Once you have made all the changes to your
  663. BSP layer, there remains a few things you need to do for the
  664. OpenEmbedded build system in order for it to create your image. You
  665. need to get the build environment ready by sourcing an environment
  666. setup script (i.e. ``oe-init-build-env``) and you need to be sure two
  667. key configuration files are configured appropriately: the
  668. ``conf/local.conf`` and the ``conf/bblayers.conf`` file. You must
  669. make the OpenEmbedded build system aware of your new layer. See the
  670. ":ref:`dev-manual/layers:enabling your layer`"
  671. section in the Yocto Project Development Tasks Manual for information
  672. on how to let the build system know about your new layer.
  673. #. *Build the Image:* The OpenEmbedded build system uses the BitBake
  674. tool to build images based on the type of image you want to create.
  675. You can find more information about BitBake in the
  676. :doc:`BitBake User Manual <bitbake:index>`.
  677. The build process supports several types of images to satisfy
  678. different needs. See the
  679. ":ref:`ref-manual/images:Images`" chapter in the Yocto
  680. Project Reference Manual for information on supported images.
  681. Requirements and Recommendations for Released BSPs
  682. ==================================================
  683. This section describes requirements and recommendations for a released
  684. BSP to be considered compliant with the Yocto Project.
  685. Released BSP Requirements
  686. -------------------------
  687. Before looking at BSP requirements, you should consider the following:
  688. - The requirements here assume the BSP layer is a well-formed, "legal"
  689. layer that can be added to the Yocto Project. For guidelines on
  690. creating a layer that meets these base requirements, see the
  691. ":ref:`bsp-guide/bsp:bsp layers`" section in this manual and the
  692. ":ref:`dev-manual/layers:understanding and creating layers`"
  693. section in the Yocto Project Development Tasks Manual.
  694. - The requirements in this section apply regardless of how you package
  695. a BSP. You should consult the packaging and distribution guidelines
  696. for your specific release process. For an example of packaging and
  697. distribution requirements, see the ":yocto_wiki:`Third Party BSP Release
  698. Process </Third_Party_BSP_Release_Process>`"
  699. wiki page.
  700. - The requirements for the BSP as it is made available to a developer
  701. are completely independent of the released form of the BSP. For
  702. example, the BSP Metadata can be contained within a Git repository
  703. and could have a directory structure completely different from what
  704. appears in the officially released BSP layer.
  705. - It is not required that specific packages or package modifications
  706. exist in the BSP layer, beyond the requirements for general
  707. compliance with the Yocto Project. For example, there is no requirement
  708. dictating that a specific kernel or kernel version be used in a given
  709. BSP.
  710. Following are the requirements for a released BSP that conform to the
  711. Yocto Project:
  712. - *Layer Name:* The BSP must have a layer name that follows the Yocto
  713. Project standards. For information on BSP layer names, see the
  714. ":ref:`bsp-guide/bsp:bsp layers`" section.
  715. - *File System Layout:* When possible, use the same directory names in
  716. your BSP layer as listed in the ``recipes.txt`` file, which is found
  717. in ``poky/meta`` directory of the :term:`Source Directory`
  718. or in the OpenEmbedded-Core Layer (``openembedded-core``) at
  719. :oe_git:`/openembedded-core/tree/meta`.
  720. You should place recipes (``*.bb`` files) and recipe modifications
  721. (``*.bbappend`` files) into ``recipes-*`` subdirectories by
  722. functional area as outlined in ``recipes.txt``. If you cannot find a
  723. category in ``recipes.txt`` to fit a particular recipe, you can make
  724. up your own ``recipes-*`` subdirectory.
  725. Within any particular ``recipes-*`` category, the layout should match
  726. what is found in the OpenEmbedded-Core Git repository
  727. (``openembedded-core``) or the Source Directory (``poky``). In other
  728. words, make sure you place related files in appropriately-related
  729. ``recipes-*`` subdirectories specific to the recipe's function, or
  730. within a subdirectory containing a set of closely-related recipes.
  731. The recipes themselves should follow the general guidelines for
  732. recipes used in the Yocto Project found in the ":oe_wiki:`OpenEmbedded
  733. Style Guide </Styleguide>`".
  734. - *License File:* You must include a license file in the
  735. ``meta-bsp_root_name`` directory. This license covers the BSP
  736. Metadata as a whole. You must specify which license to use since no
  737. default license exists. See the
  738. :yocto_git:`COPYING.MIT </meta-raspberrypi/tree/COPYING.MIT>`
  739. file for the Raspberry Pi BSP in the ``meta-raspberrypi`` BSP layer
  740. as an example.
  741. - *README File:* You must include a ``README`` file in the
  742. ``meta-bsp_root_name`` directory. See the
  743. :yocto_git:`README.md </meta-raspberrypi/tree/README.md>`
  744. file for the Raspberry Pi BSP in the ``meta-raspberrypi`` BSP layer
  745. as an example.
  746. At a minimum, the ``README`` file should contain the following:
  747. - A brief description of the target hardware.
  748. - A list of all the dependencies of the BSP. These dependencies are
  749. typically a list of required layers needed to build the BSP.
  750. However, the dependencies should also contain information
  751. regarding any other dependencies the BSP might have.
  752. - Any required special licensing information. For example, this
  753. information includes information on special variables needed to
  754. satisfy a EULA, or instructions on information needed to build or
  755. distribute binaries built from the BSP Metadata.
  756. - The name and contact information for the BSP layer maintainer.
  757. This is the person to whom patches and questions should be sent.
  758. For information on how to find the right person, see the
  759. ":ref:`dev-manual/changes:submitting a change to the yocto project`"
  760. section in the Yocto Project Development Tasks Manual.
  761. - Instructions on how to build the BSP using the BSP layer.
  762. - Instructions on how to boot the BSP build from the BSP layer.
  763. - Instructions on how to boot the binary images contained in the
  764. ``binary`` directory, if present.
  765. - Information on any known bugs or issues that users should know
  766. about when either building or booting the BSP binaries.
  767. - *README.sources File:* If your BSP contains binary images in the
  768. ``binary`` directory, you must include a ``README.sources`` file in
  769. the ``meta-bsp_root_name`` directory. This file specifies exactly
  770. where you can find the sources used to generate the binary images.
  771. - *Layer Configuration File:* You must include a ``conf/layer.conf``
  772. file in the ``meta-bsp_root_name`` directory. This file identifies
  773. the ``meta-bsp_root_name`` BSP layer as a layer to the build
  774. system.
  775. - *Machine Configuration File:* You must include one or more
  776. ``conf/machine/bsp_root_name.conf`` files in the
  777. ``meta-bsp_root_name`` directory. These configuration files define
  778. machine targets that can be built using the BSP layer. Multiple
  779. machine configuration files define variations of machine
  780. configurations that the BSP supports. If a BSP supports multiple
  781. machine variations, you need to adequately describe each variation in
  782. the BSP ``README`` file. Do not use multiple machine configuration
  783. files to describe disparate hardware. If you do have very different
  784. targets, you should create separate BSP layers for each target.
  785. .. note::
  786. It is completely possible for a developer to structure the working
  787. repository as a conglomeration of unrelated BSP files, and to possibly
  788. generate BSPs targeted for release from that directory using scripts or
  789. some other mechanism (e.g. ``meta-yocto-bsp`` layer). Such considerations
  790. are outside the scope of this document.
  791. Released BSP Recommendations
  792. ----------------------------
  793. Following are recommendations for released BSPs that conform to the
  794. Yocto Project:
  795. - *Bootable Images:* Released BSPs can contain one or more bootable
  796. images. Including bootable images allows users to easily try out the
  797. BSP using their own hardware.
  798. In some cases, it might not be convenient to include a bootable
  799. image. If so, you might want to make two versions of the BSP
  800. available: one that contains binary images, and one that does not.
  801. The version that does not contain bootable images avoids unnecessary
  802. download times for users not interested in the images.
  803. If you need to distribute a BSP and include bootable images or build
  804. kernel and filesystems meant to allow users to boot the BSP for
  805. evaluation purposes, you should put the images and artifacts within a
  806. ``binary/`` subdirectory located in the ``meta-bsp_root_name``
  807. directory.
  808. .. note::
  809. If you do include a bootable image as part of the BSP and the
  810. image was built by software covered by the GPL or other open
  811. source licenses, it is your responsibility to understand and meet
  812. all licensing requirements, which could include distribution of
  813. source files.
  814. - *Use a Yocto Linux Kernel:* Kernel recipes in the BSP should be based
  815. on a Yocto Linux kernel. Basing your recipes on these kernels reduces
  816. the costs for maintaining the BSP and increases its scalability. See
  817. the ``Yocto Linux Kernel`` category in the
  818. :yocto_git:`Source Repositories <>` for these kernels.
  819. Customizing a Recipe for a BSP
  820. ==============================
  821. If you plan on customizing a recipe for a particular BSP, you need to do
  822. the following:
  823. - Create a ``*.bbappend`` file for the modified recipe. For information on using
  824. append files, see the
  825. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  826. section in the Yocto Project Development Tasks Manual.
  827. - Ensure your directory structure in the BSP layer that supports your
  828. machine is such that the OpenEmbedded build system can find it. See
  829. the example later in this section for more information.
  830. - Put the append file in a directory whose name matches the machine's
  831. name and is located in an appropriate sub-directory inside the BSP
  832. layer (i.e. ``recipes-bsp``, ``recipes-graphics``, ``recipes-core``,
  833. and so forth).
  834. - Place the BSP-specific files in the proper directory inside the BSP
  835. layer. How expansive the layer is affects where you must place these
  836. files. For example, if your layer supports several different machine
  837. types, you need to be sure your layer's directory structure includes
  838. hierarchy that separates the files according to machine. If your
  839. layer does not support multiple machines, the layer would not have
  840. that additional hierarchy and the files would obviously not be able
  841. to reside in a machine-specific directory.
  842. Following is a specific example to help you better understand the
  843. process. This example customizes a recipe by adding a
  844. BSP-specific configuration file named ``interfaces`` to the
  845. ``init-ifupdown_1.0.bb`` recipe for machine "xyz" where the BSP layer
  846. also supports several other machines:
  847. #. Edit the ``init-ifupdown_1.0.bbappend`` file so that it contains the
  848. following::
  849. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  850. The append file needs to be in the ``meta-xyz/recipes-core/init-ifupdown``
  851. directory.
  852. #. Create and place the new ``interfaces`` configuration file in the
  853. BSP's layer here::
  854. meta-xyz/recipes-core/init-ifupdown/files/xyz-machine-one/interfaces
  855. .. note::
  856. If the ``meta-xyz`` layer did not support multiple machines, you would place
  857. the interfaces configuration file in the layer here::
  858. meta-xyz/recipes-core/init-ifupdown/files/interfaces
  859. The :term:`FILESEXTRAPATHS` variable in the append files extends the search
  860. path the build system uses to find files during the build. Consequently, for
  861. this example you need to have the ``files`` directory in the same location as
  862. your append file.
  863. BSP Licensing Considerations
  864. ============================
  865. In some cases, a BSP contains separately-licensed Intellectual Property
  866. (IP) for a component or components. For these cases, you are required to
  867. accept the terms of a commercial or other type of license that requires
  868. some kind of explicit End User License Agreement (EULA). Once you accept
  869. the license, the OpenEmbedded build system can then build and include
  870. the corresponding component in the final BSP image. If the BSP is
  871. available as a pre-built image, you can download the image after
  872. agreeing to the license or EULA.
  873. You could find that some separately-licensed components that are
  874. essential for normal operation of the system might not have an
  875. unencumbered (or free) substitute. Without these essential components,
  876. the system would be non-functional. Then again, you might find that
  877. other licensed components that are simply 'good-to-have' or purely
  878. elective do have an unencumbered, free replacement component that you
  879. can use rather than agreeing to the separately-licensed component. Even
  880. for components essential to the system, you might find an unencumbered
  881. component that is not identical but will work as a less-capable version
  882. of the licensed version in the BSP recipe.
  883. For cases where you can substitute a free component and still maintain
  884. the system's functionality, the "DOWNLOADS" selection from the
  885. "SOFTWARE" tab on the :yocto_home:`Yocto Project Website <>` makes
  886. available de-featured BSPs that are completely free of any IP
  887. encumbrances. For these cases, you can use the substitution directly and
  888. without any further licensing requirements. If present, these fully
  889. de-featured BSPs are named appropriately different as compared to the
  890. names of their respective encumbered BSPs. If available, these
  891. substitutions are your simplest and most preferred options. Obviously,
  892. use of these substitutions assumes the resulting functionality meets
  893. system requirements.
  894. .. note::
  895. If however, a non-encumbered version is unavailable or it provides
  896. unsuitable functionality or quality, you can use an encumbered
  897. version.
  898. There are two different methods within the OpenEmbedded build system to
  899. satisfy the licensing requirements for an encumbered BSP. The following
  900. list describes them in order of preference:
  901. #. *Use the LICENSE_FLAGS Variable to Define the Recipes that Have Commercial or
  902. Other Types of Specially-Licensed Packages:* For each of those recipes, you can
  903. specify a matching license string in a ``local.conf`` variable named
  904. :term:`LICENSE_FLAGS_ACCEPTED`.
  905. Specifying the matching license string signifies that you agree to
  906. the license. Thus, the build system can build the corresponding
  907. recipe and include the component in the image. See the
  908. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  909. section in the Yocto Project Development Tasks Manual for details on
  910. how to use these variables.
  911. If you build as you normally would, without specifying any recipes in
  912. the :term:`LICENSE_FLAGS_ACCEPTED` variable, the build stops and provides
  913. you with the list of recipes that you have tried to include in the image
  914. that need entries in the :term:`LICENSE_FLAGS_ACCEPTED` variable. Once you
  915. enter the appropriate license flags into it, restart the build to continue
  916. where it left off. During the build, the prompt will not appear again since
  917. you have satisfied the requirement.
  918. Once the appropriate license flags are on the white list in the
  919. :term:`LICENSE_FLAGS_ACCEPTED` variable, you can build the encumbered
  920. image with no change at all to the normal build process.
  921. #. *Get a Pre-Built Version of the BSP:* You can get this type of BSP by
  922. selecting the "DOWNLOADS" item from the "SOFTWARE" tab on the
  923. :yocto_home:`Yocto Project website <>`. You can download BSP tarballs
  924. that contain proprietary components after agreeing to the licensing
  925. requirements of each of the individually encumbered packages as part
  926. of the download process. Obtaining the BSP this way allows you to
  927. access an encumbered image immediately after agreeing to the
  928. click-through license agreements presented by the website. If you
  929. want to build the image yourself using the recipes contained within
  930. the BSP tarball, you will still need to create an appropriate
  931. :term:`LICENSE_FLAGS_ACCEPTED` to match the encumbered recipes in the
  932. BSP.
  933. .. note::
  934. Pre-compiled images are bundled with a time-limited kernel that runs
  935. for a predetermined amount of time (10 days) before it forces the
  936. system to reboot. This limitation is meant to discourage direct
  937. redistribution of the image. You must eventually rebuild the image if
  938. you want to remove this restriction.
  939. Creating a new BSP Layer Using the ``bitbake-layers`` Script
  940. ============================================================
  941. The ``bitbake-layers create-layer`` script automates creating a BSP
  942. layer. What makes a layer a "BSP layer" is the presence of at least one
  943. machine configuration file. Additionally, a BSP layer usually has a
  944. kernel recipe or an append file that leverages off an existing kernel
  945. recipe. The primary requirement, however, is the machine configuration.
  946. Use these steps to create a BSP layer:
  947. - *Create a General Layer:* Use the ``bitbake-layers`` script with the
  948. ``create-layer`` subcommand to create a new general layer. For
  949. instructions on how to create a general layer using the
  950. ``bitbake-layers`` script, see the
  951. ":ref:`dev-manual/layers:creating a general layer using the \`\`bitbake-layers\`\` script`"
  952. section in the Yocto Project Development Tasks Manual.
  953. - *Create a Layer Configuration File:* Every layer needs a layer
  954. configuration file. This configuration file establishes locations for
  955. the layer's recipes, priorities for the layer, and so forth. You can
  956. find examples of ``layer.conf`` files in the Yocto Project
  957. :yocto_git:`Source Repositories <>`. To get examples of what you need
  958. in your configuration file, locate a layer (e.g. "meta-ti") and
  959. examine the
  960. :yocto_git:`local.conf </meta-ti/tree/conf/layer.conf>`
  961. file.
  962. - *Create a Machine Configuration File:* Create a
  963. ``conf/machine/bsp_root_name.conf`` file. See
  964. :yocto_git:`meta-yocto-bsp/conf/machine </poky/tree/meta-yocto-bsp/conf/machine>`
  965. for sample ``bsp_root_name.conf`` files. There are other samples such as
  966. :yocto_git:`meta-ti </meta-ti/tree/conf/machine>`
  967. and
  968. :yocto_git:`meta-freescale </meta-freescale/tree/conf/machine>`
  969. from other vendors that have more specific machine and tuning
  970. examples.
  971. - *Create a Kernel Recipe:* Create a kernel recipe in
  972. ``recipes-kernel/linux`` by either using a kernel append file or a
  973. new custom kernel recipe file (e.g. ``yocto-linux_4.12.bb``). The BSP
  974. layers mentioned in the previous step also contain different kernel
  975. examples. See the ":ref:`kernel-dev/common:modifying an existing recipe`"
  976. section in the Yocto Project Linux Kernel Development Manual for
  977. information on how to create a custom kernel.
  978. The remainder of this section provides a description of the Yocto
  979. Project reference BSP for Beaglebone, which resides in the
  980. :yocto_git:`meta-yocto-bsp </poky/tree/meta-yocto-bsp>`
  981. layer.
  982. BSP Layer Configuration Example
  983. -------------------------------
  984. The layer's ``conf`` directory contains the ``layer.conf`` configuration
  985. file. In this example, the ``conf/layer.conf`` is the following::
  986. # We have a conf and classes directory, add to BBPATH
  987. BBPATH .= ":${LAYERDIR}"
  988. # We have a recipes directory containing .bb and .bbappend files, add to BBFILES
  989. BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
  990. ${LAYERDIR}/recipes-*/*/*.bbappend"
  991. BBFILE_COLLECTIONS += "yoctobsp"
  992. BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
  993. BBFILE_PRIORITY_yoctobsp = "5"
  994. LAYERVERSION_yoctobsp = "4"
  995. LAYERSERIES_COMPAT_yoctobsp = "&DISTRO_NAME_NO_CAP;"
  996. The variables used in this file configure the layer. A good way to learn about layer
  997. configuration files is to examine various files for BSP from the
  998. :yocto_git:`Source Repositories <>`.
  999. For a detailed description of this particular layer configuration file,
  1000. see ":ref:`step 3 <dev-manual/layers:creating your own layer>`"
  1001. in the discussion that describes how to create layers in the Yocto
  1002. Project Development Tasks Manual.
  1003. BSP Machine Configuration Example
  1004. ---------------------------------
  1005. As mentioned earlier in this section, the existence of a machine
  1006. configuration file is what makes a layer a BSP layer as compared to a
  1007. general or kernel layer.
  1008. There are one or more machine configuration files in the
  1009. ``bsp_layer/conf/machine/`` directory of the layer::
  1010. bsp_layer/conf/machine/machine1\.conf
  1011. bsp_layer/conf/machine/machine2\.conf
  1012. bsp_layer/conf/machine/machine3\.conf
  1013. ... more ...
  1014. For example, the machine configuration file for the `BeagleBone and
  1015. BeagleBone Black development boards <https://beagleboard.org/bone>`__ is
  1016. located in the layer ``poky/meta-yocto-bsp/conf/machine`` and is named
  1017. ``beaglebone-yocto.conf``::
  1018. #@TYPE: Machine
  1019. #@NAME: Beaglebone-yocto machine
  1020. #@DESCRIPTION: Reference machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards
  1021. PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
  1022. XSERVER ?= "xserver-xorg \
  1023. xf86-video-modesetting \
  1024. "
  1025. MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
  1026. EXTRA_IMAGEDEPENDS += "u-boot"
  1027. DEFAULTTUNE ?= "cortexa8hf-neon"
  1028. include conf/machine/include/arm/armv7a/tune-cortexa8.inc
  1029. IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
  1030. EXTRA_IMAGECMD:jffs2 = "-lnp "
  1031. WKS_FILE ?= "beaglebone-yocto.wks"
  1032. IMAGE_INSTALL:append = " kernel-devicetree kernel-image-zimage"
  1033. do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
  1034. SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0"
  1035. SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
  1036. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  1037. PREFERRED_VERSION_linux-yocto ?= "5.0%"
  1038. KERNEL_IMAGETYPE = "zImage"
  1039. KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
  1040. KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
  1041. SPL_BINARY = "MLO"
  1042. UBOOT_SUFFIX = "img"
  1043. UBOOT_MACHINE = "am335x_evm_defconfig"
  1044. UBOOT_ENTRYPOINT = "0x80008000"
  1045. UBOOT_LOADADDRESS = "0x80008000"
  1046. MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
  1047. IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} MLO zImage am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
  1048. The variables used to configure the machine define machine-specific properties; for
  1049. example, machine-dependent packages, machine tunings, the type of kernel
  1050. to build, and U-Boot configurations.
  1051. The following list provides some explanation for the statements found in
  1052. the example reference machine configuration file for the BeagleBone
  1053. development boards. Realize that much more can be defined as part of a
  1054. machine's configuration file. In general, you can learn about related
  1055. variables that this example does not have by locating the variables in
  1056. the ":ref:`ref-manual/variables:variables glossary`" in the Yocto
  1057. Project Reference Manual.
  1058. - :term:`PREFERRED_PROVIDER_virtual/xserver <PREFERRED_PROVIDER>`:
  1059. The recipe that provides "virtual/xserver" when more than one
  1060. provider is found. In this case, the recipe that provides
  1061. "virtual/xserver" is "xserver-xorg", available in
  1062. ``poky/meta/recipes-graphics/xorg-xserver``.
  1063. - :term:`XSERVER`: The packages that
  1064. should be installed to provide an X server and drivers for the
  1065. machine. In this example, the "xserver-xorg" and
  1066. "xf86-video-modesetting" are installed.
  1067. - :term:`MACHINE_EXTRA_RRECOMMENDS`:
  1068. A list of machine-dependent packages not essential for booting the
  1069. image. Thus, the build does not fail if the packages do not exist.
  1070. However, the packages are required for a fully-featured image.
  1071. .. tip::
  1072. There are many ``MACHINE*`` variables that help you configure a particular piece
  1073. of hardware.
  1074. - :term:`EXTRA_IMAGEDEPENDS`:
  1075. Recipes to build that do not provide packages for installing into the
  1076. root filesystem but building the image depends on the recipes.
  1077. Sometimes a recipe is required to build the final image but is not
  1078. needed in the root filesystem. In this case, the U-Boot recipe must
  1079. be built for the image.
  1080. - :term:`DEFAULTTUNE`: Machines
  1081. use tunings to optimize machine, CPU, and application performance.
  1082. These features, which are collectively known as "tuning features",
  1083. are set in the :term:`OpenEmbedded-Core (OE-Core)` layer (e.g.
  1084. ``poky/meta/conf/machine/include``). In this example, the default
  1085. tuning file is ``cortexa8hf-neon``.
  1086. .. note::
  1087. The include statement that pulls in the
  1088. ``conf/machine/include/arm/tune-cortexa8.inc`` file provides many tuning
  1089. possibilities.
  1090. - :term:`IMAGE_FSTYPES`: The
  1091. formats the OpenEmbedded build system uses during the build when
  1092. creating the root filesystem. In this example, four types of images
  1093. are supported.
  1094. - :term:`EXTRA_IMAGECMD`:
  1095. Specifies additional options for image creation commands. In this
  1096. example, the "-lnp " option is used when creating the
  1097. :wikipedia:`JFFS2 <JFFS2>` image.
  1098. - :term:`WKS_FILE`: The location of
  1099. the :ref:`Wic kickstart <ref-manual/kickstart:openembedded kickstart (\`\`.wks\`\`) reference>` file used
  1100. by the OpenEmbedded build system to create a partitioned image
  1101. (image.wic).
  1102. - :term:`IMAGE_INSTALL`:
  1103. Specifies packages to install into an image through the
  1104. :ref:`image <ref-classes-image>` class. Recipes
  1105. use the :term:`IMAGE_INSTALL` variable.
  1106. - ``do_image_wic[depends]``: A task that is constructed during the
  1107. build. In this example, the task depends on specific tools in order
  1108. to create the sysroot when building a Wic image.
  1109. - :term:`SERIAL_CONSOLES`:
  1110. Defines a serial console (TTY) to enable using getty. In this case,
  1111. the baud rate is "115200" and the device name is "ttyO0".
  1112. - :term:`PREFERRED_PROVIDER_virtual/kernel <PREFERRED_PROVIDER>`:
  1113. Specifies the recipe that provides "virtual/kernel" when more than
  1114. one provider is found. In this case, the recipe that provides
  1115. "virtual/kernel" is "linux-yocto", which exists in the layer's
  1116. ``recipes-kernel/linux`` directory.
  1117. - :term:`PREFERRED_VERSION_linux-yocto <PREFERRED_VERSION>`:
  1118. Defines the version of the recipe used to build the kernel, which is
  1119. "5.0" in this case.
  1120. - :term:`KERNEL_IMAGETYPE`:
  1121. The type of kernel to build for the device. In this case, the
  1122. OpenEmbedded build system creates a "zImage" image type.
  1123. - :term:`KERNEL_DEVICETREE`:
  1124. The names of the generated Linux kernel device trees (i.e. the
  1125. ``*.dtb``) files. All the device trees for the various BeagleBone
  1126. devices are included.
  1127. - :term:`KERNEL_EXTRA_ARGS`:
  1128. Additional ``make`` command-line arguments the OpenEmbedded build
  1129. system passes on when compiling the kernel. In this example,
  1130. ``LOADADDR=${UBOOT_ENTRYPOINT}`` is passed as a command-line argument.
  1131. - :term:`SPL_BINARY`: Defines the
  1132. Secondary Program Loader (SPL) binary type. In this case, the SPL
  1133. binary is set to "MLO", which stands for Multimedia card LOader.
  1134. The BeagleBone development board requires an SPL to boot and that SPL
  1135. file type must be MLO. Consequently, the machine configuration needs
  1136. to define :term:`SPL_BINARY` as ``MLO``.
  1137. .. note::
  1138. For more information on how the SPL variables are used, see the
  1139. :yocto_git:`u-boot.inc </poky/tree/meta/recipes-bsp/u-boot/u-boot.inc>`
  1140. include file.
  1141. - :term:`UBOOT_* <UBOOT_ENTRYPOINT>`: Defines
  1142. various U-Boot configurations needed to build a U-Boot image. In this
  1143. example, a U-Boot image is required to boot the BeagleBone device.
  1144. See the following variables for more information:
  1145. - :term:`UBOOT_SUFFIX`:
  1146. Points to the generated U-Boot extension.
  1147. - :term:`UBOOT_MACHINE`:
  1148. Specifies the value passed on the make command line when building
  1149. a U-Boot image.
  1150. - :term:`UBOOT_ENTRYPOINT`:
  1151. Specifies the entry point for the U-Boot image.
  1152. - :term:`UBOOT_LOADADDRESS`:
  1153. Specifies the load address for the U-Boot image.
  1154. - :term:`MACHINE_FEATURES`:
  1155. Specifies the list of hardware features the BeagleBone device is
  1156. capable of supporting. In this case, the device supports "usbgadget
  1157. usbhost vfat alsa".
  1158. - :term:`IMAGE_BOOT_FILES`:
  1159. Files installed into the device's boot partition when preparing the
  1160. image using the Wic tool with the ``bootimg-partition`` or
  1161. ``bootimg-efi`` source plugin.
  1162. BSP Kernel Recipe Example
  1163. -------------------------
  1164. The kernel recipe used to build the kernel image for the BeagleBone
  1165. device was established in the machine configuration::
  1166. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  1167. PREFERRED_VERSION_linux-yocto ?= "5.0%"
  1168. The ``meta-yocto-bsp/recipes-kernel/linux`` directory in the layer contains
  1169. metadata used to build the kernel. In this case, a kernel append file
  1170. (i.e. ``linux-yocto_5.0.bbappend``) is used to override an established
  1171. kernel recipe (i.e. ``linux-yocto_5.0.bb``), which is located in
  1172. :yocto_git:`/poky/tree/meta/recipes-kernel/linux`.
  1173. Following is the contents of the append file::
  1174. KBRANCH:genericx86 = "v5.0/standard/base"
  1175. KBRANCH:genericx86-64 = "v5.0/standard/base"
  1176. KBRANCH:edgerouter = "v5.0/standard/edgerouter"
  1177. KBRANCH:beaglebone-yocto = "v5.0/standard/beaglebone"
  1178. KMACHINE:genericx86 ?= "common-pc"
  1179. KMACHINE:genericx86-64 ?= "common-pc-64"
  1180. KMACHINE:beaglebone-yocto ?= "beaglebone"
  1181. SRCREV_machine:genericx86 ?= "3df4aae6074e94e794e27fe7f17451d9353cdf3d"
  1182. SRCREV_machine:genericx86-64 ?= "3df4aae6074e94e794e27fe7f17451d9353cdf3d"
  1183. SRCREV_machine:edgerouter ?= "3df4aae6074e94e794e27fe7f17451d9353cdf3d"
  1184. SRCREV_machine:beaglebone-yocto ?= "3df4aae6074e94e794e27fe7f17451d9353cdf3d"
  1185. COMPATIBLE_MACHINE:genericx86 = "genericx86"
  1186. COMPATIBLE_MACHINE:genericx86-64 = "genericx86-64"
  1187. COMPATIBLE_MACHINE:edgerouter = "edgerouter"
  1188. COMPATIBLE_MACHINE:beaglebone-yocto = "beaglebone-yocto"
  1189. LINUX_VERSION:genericx86 = "5.0.3"
  1190. LINUX_VERSION:genericx86-64 = "5.0.3"
  1191. LINUX_VERSION:edgerouter = "5.0.3"
  1192. LINUX_VERSION:beaglebone-yocto = "5.0.3"
  1193. This particular append file works for all the machines that are
  1194. part of the ``meta-yocto-bsp`` layer. The relevant statements are
  1195. appended with the "beaglebone-yocto" string. The OpenEmbedded build
  1196. system uses these statements to override similar statements in the
  1197. kernel recipe:
  1198. - :term:`KBRANCH`: Identifies the
  1199. kernel branch that is validated, patched, and configured during the
  1200. build.
  1201. - :term:`KMACHINE`: Identifies the
  1202. machine name as known by the kernel, which is sometimes a different
  1203. name than what is known by the OpenEmbedded build system.
  1204. - :term:`SRCREV`: Identifies the
  1205. revision of the source code used to build the image.
  1206. - :term:`COMPATIBLE_MACHINE`:
  1207. A regular expression that resolves to one or more target machines
  1208. with which the recipe is compatible.
  1209. - :term:`LINUX_VERSION`: The
  1210. Linux version from kernel.org used by the OpenEmbedded build system
  1211. to build the kernel image.