diff --git a/slides/yocto-advanced/yocto-advanced.typ b/slides/yocto-advanced/yocto-advanced.typ index 10dbbd422e..61e5781a81 100644 --- a/slides/yocto-advanced/yocto-advanced.typ +++ b/slides/yocto-advanced/yocto-advanced.typ @@ -241,9 +241,9 @@ $ bitbake-getvar DEPLOY_DIR NOTE: Starting bitbake server... # # $DEPLOY_DIR [2 operations] -# set? /home/user/yocto-labs/poky/meta/conf/bitbake.conf:440 +# set? /home/user/yocto-labs/openembedded-core/meta/conf/bitbake.conf:440 # "${TMPDIR}/deploy" -# set /home/user/yocto-labs/poky/meta/conf/documentation.conf:137 +# set /home/user/yocto-labs/openembedded-core/meta/conf/documentation.conf:137 # [doc] "Points to the general area that the OpenEmbedded build system uses to place images, [...]" # pre-expansion value: # "${TMPDIR}/deploy" @@ -318,7 +318,7 @@ $ #v(0.5em) ```sh -OVERRIDES="arm:armv7a:ti-soc:ti33x:beaglebone:poky" +OVERRIDES = "arm:armv7a:ti-soc:ti33x:beaglebone:poky" KERNEL_DEVICETREE:beaglebone = "am335x-bone.dtb" # This is applied KERNEL_DEVICETREE:dra7xx-evm = "dra7-evm.dtb" # This is ignored diff --git a/slides/yocto-basics/yocto-basics.typ b/slides/yocto-basics/yocto-basics.typ index 640afddb5f..9efde91631 100644 --- a/slides/yocto-basics/yocto-basics.typ +++ b/slides/yocto-basics/yocto-basics.typ @@ -13,7 +13,7 @@ === Environment setup -- All Poky files are left unchanged when building a custom image. +- All Yocto source files are left unchanged when building a custom image. - Specific configuration files and build repositories are stored in a separate build directory. @@ -28,7 +28,7 @@ - Adds environment variables, used by the build engine. -- Allows you to use commands provided in Poky. +- Allows you to use commands provided in openembedded-core. - `source ./oe-init-build-env [builddir]` @@ -88,6 +88,10 @@ limits. ] + / toolcfg.conf: #block[ + Used by tools to store build configuration, it should not be modified manually. + ] + === Configuring the build The `conf/local.conf` configuration file holds local user configuration variables: diff --git a/slides/yocto-bsp/yocto-bsp-overview.dia b/slides/yocto-bsp/yocto-bsp-overview.dia index 9836fdf83a..e96fa9787f 100644 --- a/slides/yocto-bsp/yocto-bsp-overview.dia +++ b/slides/yocto-bsp/yocto-bsp-overview.dia @@ -2,10 +2,10 @@ - + - + @@ -37,6 +37,9 @@ + + + @@ -53,22 +56,63 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + - + @@ -82,10 +126,10 @@ - + - + @@ -101,7 +145,7 @@ - + @@ -110,16 +154,16 @@ - + - + - + @@ -130,7 +174,7 @@ - + @@ -139,56 +183,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -205,7 +220,7 @@ - + @@ -216,12 +231,12 @@ - + - + @@ -238,7 +253,7 @@ - + @@ -249,15 +264,15 @@ - + - + - + - + @@ -266,21 +281,21 @@ - + - + - + - + - + @@ -294,10 +309,10 @@ - + - + @@ -308,18 +323,18 @@ - + - + - + - + - + @@ -328,21 +343,21 @@ - + - + - + - + - + @@ -356,10 +371,10 @@ - + - + @@ -370,18 +385,18 @@ - + - + - + - + - + @@ -390,21 +405,21 @@ - + - + - + - + - + @@ -418,10 +433,10 @@ - + - + @@ -432,18 +447,18 @@ - + - + - + - + - + @@ -452,21 +467,21 @@ - + - + - + - + - + @@ -480,10 +495,10 @@ - + - + @@ -494,51 +509,18 @@ - + - + - + - - - - - - #Poky# - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -550,21 +532,21 @@ - + - + - + - + - + @@ -578,10 +560,10 @@ - + - + @@ -592,15 +574,15 @@ - + - + - + - + @@ -612,21 +594,21 @@ - + - + - + - + - + @@ -640,10 +622,10 @@ - + - + @@ -654,12 +636,12 @@ - + - + - + @@ -673,10 +655,10 @@ - + - + @@ -687,18 +669,18 @@ - + - + - + - + - + @@ -710,21 +692,21 @@ - + - + - + - + - + @@ -738,10 +720,10 @@ - + - + @@ -752,18 +734,18 @@ - + - + - + - + - + @@ -775,21 +757,21 @@ - + - + - + - + - + @@ -803,10 +785,10 @@ - + - + @@ -817,15 +799,15 @@ - + - + - + - + @@ -837,21 +819,21 @@ - + - + - + - + - + @@ -865,10 +847,10 @@ - + - + @@ -879,18 +861,18 @@ - + - + - + - + - + @@ -902,21 +884,21 @@ - + - + - + - + - + @@ -930,10 +912,10 @@ - + - + @@ -944,18 +926,18 @@ - + - + - + - + - + @@ -967,21 +949,21 @@ - + - + - + - + - + @@ -995,10 +977,10 @@ - + - + @@ -1009,18 +991,18 @@ - + - + - + - + - + @@ -1032,21 +1014,21 @@ - + - + - + - + - + @@ -1060,10 +1042,10 @@ - + - + @@ -1074,18 +1056,18 @@ - + - + - + - + - + @@ -1097,21 +1079,21 @@ - + - + - + - + - + @@ -1125,10 +1107,10 @@ - + - + @@ -1139,18 +1121,18 @@ - + - + - + - + - + @@ -1162,21 +1144,21 @@ - + - + - + - + - + @@ -1190,10 +1172,10 @@ - + - + @@ -1204,18 +1186,18 @@ - + - + - + - + - + @@ -1227,21 +1209,21 @@ - + - + - + - + - + @@ -1255,10 +1237,10 @@ - + - + @@ -1269,15 +1251,15 @@ - + - + - + - + @@ -1289,21 +1271,21 @@ - + - + - + - + - + @@ -1317,10 +1299,10 @@ - + - + @@ -1331,18 +1313,18 @@ - + - + - + - + - + @@ -1354,21 +1336,21 @@ - + - + - + - + - + @@ -1382,10 +1364,10 @@ - + - + @@ -1396,18 +1378,18 @@ - + - + - + - + - + @@ -1419,24 +1401,24 @@ - + - + - + - + - + - + @@ -1448,24 +1430,24 @@ - + - + - + - + - + - + @@ -1477,21 +1459,21 @@ - + - + - + - + - + @@ -1505,10 +1487,10 @@ - + - + @@ -1519,18 +1501,18 @@ - + - + - + - + - + @@ -1542,21 +1524,21 @@ - + - + - + - + - + @@ -1570,10 +1552,10 @@ - + - + @@ -1584,18 +1566,18 @@ - + - + - + - + - + @@ -1607,21 +1589,21 @@ - + - + - + - + - + @@ -1635,10 +1617,10 @@ - + - + @@ -1649,18 +1631,18 @@ - + - + - + - + - + @@ -1672,21 +1654,21 @@ - + - + - + - + - + @@ -1700,10 +1682,10 @@ - + - + @@ -1714,18 +1696,18 @@ - + - + - + - + - + @@ -1734,21 +1716,21 @@ - + - + - + - + - + @@ -1762,10 +1744,10 @@ - + - + @@ -1776,18 +1758,18 @@ - + - + - + - + - + @@ -1799,24 +1781,24 @@ - + - + - + - + - + - + @@ -1828,24 +1810,24 @@ - + - + - + - + - + - + @@ -1857,21 +1839,21 @@ - + - + - + - + - + @@ -1885,10 +1867,10 @@ - + - + @@ -1899,15 +1881,15 @@ - + - + - + - + @@ -1921,10 +1903,10 @@ - + - + @@ -1935,15 +1917,15 @@ - + - + - + - + @@ -1957,10 +1939,10 @@ - + - + @@ -1971,18 +1953,18 @@ - + - + - + - + - + @@ -1994,21 +1976,21 @@ - + - + - + - + - + @@ -2022,10 +2004,10 @@ - + - + @@ -2036,18 +2018,18 @@ - + - + - + - + - + @@ -2059,21 +2041,21 @@ - + - + - + - + - + @@ -2087,10 +2069,10 @@ - + - + @@ -2101,15 +2083,15 @@ - + - + - + - + @@ -2123,10 +2105,10 @@ - + - + @@ -2137,12 +2119,12 @@ - + - + - + @@ -2156,10 +2138,10 @@ - + - + @@ -2170,7 +2152,7 @@ - + @@ -2190,21 +2172,21 @@ - + - + - + - + @@ -2218,10 +2200,10 @@ - + - + @@ -2232,10 +2214,10 @@ - + - + @@ -2255,7 +2237,7 @@ - + @@ -2275,21 +2257,21 @@ - + - + - + - + @@ -2303,10 +2285,10 @@ - + - + @@ -2317,10 +2299,10 @@ - + - + @@ -2340,21 +2322,21 @@ - + - + - + - + @@ -2368,10 +2350,10 @@ - + - + @@ -2382,15 +2364,15 @@ - + - + - + @@ -2404,10 +2386,10 @@ - + - + @@ -2418,7 +2400,7 @@ - + diff --git a/slides/yocto-bsp/yocto-bsp.typ b/slides/yocto-bsp/yocto-bsp.typ index 82f33ba2d6..4ca3ec4abc 100644 --- a/slides/yocto-bsp/yocto-bsp.typ +++ b/slides/yocto-bsp/yocto-bsp.typ @@ -147,7 +147,7 @@ === Default bootloader 1/2 - By default (on ARM) the bootloader used is the mainline version of - `U-Boot`, with a fixed version (per Poky release). + `U-Boot`, with a fixed version (per Yocto release). - All the magic is done in `meta/recipes-bsp/u-boot/u-boot.inc` @@ -191,8 +191,8 @@ - By creating a custom kernel recipe, inheriting `kernel.bbclass` - - By using the `linux-yocto` packages, provided in Poky, for very - complex needs + - By using the `linux-yocto` packages, provided in openembedded-core, for + very complex needs - The kernel used is selected in the machine file thanks to: \ #yoctovar("PREFERRED_PROVIDER")`_virtual/kernel` diff --git a/slides/yocto-image/yocto-image.typ b/slides/yocto-image/yocto-image.typ index 07feca7540..c73d9d000c 100644 --- a/slides/yocto-image/yocto-image.typ +++ b/slides/yocto-image/yocto-image.typ @@ -18,7 +18,7 @@ capabilities, the `image` is architecture agnostic and defines how the root filesystem is built, with what packages. -- By default, several images are provided in Poky: +- By default, several images are provided in openembedded-core: - `meta*/recipes*/images/*.bb` diff --git a/slides/yocto-layer-distro/yocto-layer-distro.dia b/slides/yocto-layer-distro/yocto-layer-distro.dia index 33f2c4b585..76a9308a55 100644 --- a/slides/yocto-layer-distro/yocto-layer-distro.dia +++ b/slides/yocto-layer-distro/yocto-layer-distro.dia @@ -2,10 +2,10 @@ - + - + @@ -37,6 +37,9 @@ + + + @@ -53,22 +56,55 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + - + @@ -82,10 +118,10 @@ - + - + @@ -101,7 +137,7 @@ - + @@ -110,16 +146,16 @@ - + - + - + @@ -130,7 +166,7 @@ - + @@ -139,56 +175,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -205,7 +212,7 @@ - + @@ -216,12 +223,12 @@ - + - + @@ -238,7 +245,7 @@ - + @@ -249,15 +256,15 @@ - + - + - + - + @@ -266,21 +273,21 @@ - + - + - + - + - + @@ -294,10 +301,10 @@ - + - + @@ -308,18 +315,18 @@ - + - + - + - + - + @@ -328,21 +335,21 @@ - + - + - + - + - + @@ -356,10 +363,10 @@ - + - + @@ -370,18 +377,18 @@ - + - + - + - + - + @@ -390,21 +397,21 @@ - + - + - + - + - + @@ -418,10 +425,10 @@ - + - + @@ -432,18 +439,18 @@ - + - + - + - + - + @@ -452,21 +459,21 @@ - + - + - + - + - + @@ -480,10 +487,10 @@ - + - + @@ -494,51 +501,18 @@ - + - - - - - - - - - - - #Poky# - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -550,21 +524,21 @@ - + - + - + - + - + @@ -578,10 +552,10 @@ - + - + @@ -592,15 +566,15 @@ - + - + - + - + @@ -612,21 +586,21 @@ - + - + - + - + - + @@ -640,10 +614,10 @@ - + - + @@ -654,12 +628,12 @@ - + - + - + @@ -673,10 +647,10 @@ - + - + @@ -687,18 +661,18 @@ - + - + - + - + - + @@ -710,21 +684,21 @@ - + - + - + - + - + @@ -738,10 +712,10 @@ - + - + @@ -752,18 +726,18 @@ - + - + - + - + - + @@ -775,21 +749,21 @@ - + - + - + - + - + @@ -803,10 +777,10 @@ - + - + @@ -817,15 +791,15 @@ - + - + - + - + @@ -837,21 +811,21 @@ - + - + - + - + - + @@ -865,10 +839,10 @@ - + - + @@ -879,18 +853,18 @@ - + - + - + - + - + @@ -902,21 +876,21 @@ - + - + - + - + - + @@ -930,10 +904,10 @@ - + - + @@ -944,18 +918,18 @@ - + - + - + - + - + @@ -967,21 +941,21 @@ - + - + - + - + - + @@ -995,10 +969,10 @@ - + - + @@ -1009,18 +983,18 @@ - + - + - + - + - + @@ -1032,21 +1006,21 @@ - + - + - + - + - + @@ -1060,10 +1034,10 @@ - + - + @@ -1074,18 +1048,18 @@ - + - + - + - + - + @@ -1097,21 +1071,21 @@ - + - + - + - + - + @@ -1125,10 +1099,10 @@ - + - + @@ -1139,18 +1113,18 @@ - + - + - + - + - + @@ -1162,21 +1136,21 @@ - + - + - + - + - + @@ -1190,10 +1164,10 @@ - + - + @@ -1204,18 +1178,18 @@ - + - + - + - + - + @@ -1227,21 +1201,21 @@ - + - + - + - + - + @@ -1255,10 +1229,10 @@ - + - + @@ -1269,15 +1243,15 @@ - + - + - + - + @@ -1289,21 +1263,21 @@ - + - + - + - + - + @@ -1317,10 +1291,10 @@ - + - + @@ -1331,18 +1305,18 @@ - + - + - + - + - + @@ -1354,21 +1328,21 @@ - + - + - + - + - + @@ -1382,10 +1356,10 @@ - + - + @@ -1396,18 +1370,18 @@ - + - + - + - + - + @@ -1419,24 +1393,24 @@ - + - + - + - + - + - + @@ -1448,24 +1422,24 @@ - + - + - + - + - + - + @@ -1477,21 +1451,21 @@ - + - + - + - + - + @@ -1505,10 +1479,10 @@ - + - + @@ -1519,18 +1493,18 @@ - + - + - + - + - + @@ -1542,21 +1516,21 @@ - + - + - + - + - + @@ -1570,10 +1544,10 @@ - + - + @@ -1584,18 +1558,18 @@ - + - + - + - + - + @@ -1607,21 +1581,21 @@ - + - + - + - + - + @@ -1635,10 +1609,10 @@ - + - + @@ -1649,18 +1623,18 @@ - + - + - + - + - + @@ -1672,21 +1646,21 @@ - + - + - + - + - + @@ -1700,10 +1674,10 @@ - + - + @@ -1714,18 +1688,18 @@ - + - + - + - + - + @@ -1734,21 +1708,21 @@ - + - + - + - + - + @@ -1762,10 +1736,10 @@ - + - + @@ -1776,18 +1750,18 @@ - + - + - + - + - + @@ -1799,24 +1773,24 @@ - + - + - + - + - + - + @@ -1828,24 +1802,24 @@ - + - + - + - + - + - + @@ -1857,21 +1831,21 @@ - + - + - + - + - + @@ -1885,10 +1859,10 @@ - + - + @@ -1899,15 +1873,15 @@ - + - + - + - + @@ -1921,10 +1895,10 @@ - + - + @@ -1935,15 +1909,15 @@ - + - + - + - + @@ -1957,10 +1931,10 @@ - + - + @@ -1971,18 +1945,18 @@ - + - + - + - + - + @@ -1994,21 +1968,21 @@ - + - + - + - + - + @@ -2022,10 +1996,10 @@ - + - + @@ -2036,18 +2010,18 @@ - + - + - + - + - + @@ -2059,21 +2033,21 @@ - + - + - + - + - + @@ -2087,10 +2061,10 @@ - + - + @@ -2101,15 +2075,15 @@ - + - + - + - + @@ -2123,10 +2097,10 @@ - + - + @@ -2137,12 +2111,12 @@ - + - + - + @@ -2156,10 +2130,10 @@ - + - + @@ -2170,7 +2144,7 @@ - + @@ -2190,21 +2164,21 @@ - + - + - + - + @@ -2218,10 +2192,10 @@ - + - + @@ -2232,10 +2206,10 @@ - + - + @@ -2255,7 +2229,7 @@ - + @@ -2275,21 +2249,21 @@ - + - + - + - + @@ -2303,10 +2277,10 @@ - + - + @@ -2317,10 +2291,10 @@ - + - + @@ -2340,21 +2314,21 @@ - + - + - + - + @@ -2368,10 +2342,10 @@ - + - + @@ -2382,15 +2356,15 @@ - + - + - + @@ -2404,10 +2378,10 @@ - + - + @@ -2418,7 +2392,7 @@ - + diff --git a/slides/yocto-layer-management/yocto-layer-management.typ b/slides/yocto-layer-management/yocto-layer-management.typ index e6bafe0f4f..1deb648086 100644 --- a/slides/yocto-layer-management/yocto-layer-management.typ +++ b/slides/yocto-layer-management/yocto-layer-management.typ @@ -10,7 +10,7 @@ There are multiple tasks that OE/bitbake based projects let you do on your own to ensure build reproducibility: -- Code distribution and project setup. +- Code distribution and project setup - Release tagging @@ -21,74 +21,12 @@ A separate tool is needed for that, usual solutions are: - git submodules + setup script. Great example in YOE: \ #link("https://github.com/YoeDistro/yoe-distro") -- repo and `templateconf` or setup script +- repo and `templateconf` or setup script: pretty popular in the past, before + dedicated tools emerged -- kas +- kas: probably the most popular tool -=== Google repo - -- A good way to distribute a distribution (Poky, custom layers, BSP, - `.templateconf`…) is to use Google's `repo`. - -- `Repo` is used in Android to distribute its source code, which is - split into many `git` repositories. It's a wrapper to handle several - `git` repositories at once. - -- The only requirement is to use `git`. - -- The `repo` configuration is stored in a `manifest` file, usually - available in its own `git` repository. - -- It could also be in a specific branch of your custom layer. - -- It only handles fetching code, handling `local.conf` and - `bblayers.conf` is done separately - -=== Manifest example - -#text(size: 17pt)[ - ```xml - - - - - - - - - - - - - - - - ```] - -=== Retrieve the project using `repo` - -```console -$ mkdir my-project; cd my-project -$ repo init -u https://git.example.net/manifest.git -$ repo sync -j4 -``` - -- `repo init` uses the `default.xml` manifest in the repository, unless - specified otherwise. - -- You can see the full `repo` documentation at \ - #link("https://source.android.com/source/using-repo.html"). - -=== repo: release - -To tag a release, a few steps have to be taken: - -- Optionally tag the custom layers - -- For each project entry in the manifest, set the revision parameter to - either a tag or a commit hash. - -- Commit and tag this version of the manifest. +- bitbake-setup: the newest and official tool === kas @@ -126,7 +64,7 @@ To tag a release, a few steps have to be taken: openembedded-core: url: "https://git.openembedded.org/openembedded-core" - branch: scarthgap + branch: wrynose layers: meta: ```] @@ -137,11 +75,11 @@ To tag a release, a few steps have to be taken: ```yaml meta-freescale: url: "https://github.com/Freescale/meta-freescale" - branch: scarthgap + branch: wrynose meta-openembedded: url: https://git.openembedded.org/meta-openembedded - branch: scarthgap + branch: wrynose layers: meta-oe: meta-python: @@ -162,3 +100,74 @@ To tag a release, a few steps have to be taken: ```sh $ kas shell /path/to/kas-project.yml -c 'bitbake dosfsutils-native' ```] + +=== bitbake-setup + +- The official tool, part of bitbake git: + #link("https://git.openembedded.org/bitbake/tree/bin/bitbake-setup") + +- Will fetch layers and setup the build configuration + +- Does not try to mask core tools, users still need to launch builds with bitbake + +- Uses a JSON configuration file + +=== bitbake-setup configuration + +#text(size: 13.5pt)[ + ```json + { + "description": "My bitbake setup file.", + "sources": { + "bitbake": { + "git-remote": { + "uri": "https://git.openembedded.org/bitbake", + "rev": "2.18" + } + }, + "openembedded-core": { + "git-remote": { + "uri": "https://git.openembedded.org/openembedded-core", + "rev": "wrynose" + } + }, + "meta-openembedded": { + "git-remote": { + "uri": "https://git.openembedded.org/meta-openembedded", + "rev": "wrynose" + } + }, + "meta-freescale": { + "git-remote": { + "uri": "https://github.com/Freescale/meta-freescale", + "rev": "wrynose" + } + } + }, + "bitbake-setup": { + "configurations": [{ + "name": "myconfig", + "description": "My own configuration", + "bb-layers": ["openembedded-core/meta", "meta-openembedded/meta-oe", + "meta-openembedded/meta-python", "meta-freescale"], + "oe-fragments": ["machine/mymachine", "distro/mydistro"] + }] + }, + "version": "1.0" + } + ```] + +- Then a single command will fetch all layers and setup your configuration: + +#text(size: 17pt)[ + ```sh + $ bitbake-setup init mysetup.conf.json + ```] + +- This will also create an environment file that you can source: + +#text(size: 17pt)[ + ```sh + $ . ./mysetup-myconfig/build/init-build-env + $ bitbake myimage + ```] diff --git a/slides/yocto-layer/yocto-core-layers.dia b/slides/yocto-layer/yocto-core-layers.dia new file mode 100644 index 0000000000..827ab5094a --- /dev/null +++ b/slides/yocto-layer/yocto-core-layers.dia @@ -0,0 +1,2387 @@ + + + + + + + + + + + + + #Letter# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #OpenEmbedded Project# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Yocto Project# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #ADT# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #BitBake# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Pseudo# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Matchbox# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta-custom# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ## + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta-ti-bsp# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-bsp# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ## + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-connectivity# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-core# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-kernel# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-graphics# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-ti# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta-qt5# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-qt# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta-poky# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta-yocto-bsp# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta-skeleton# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #scripts# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-bsp# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-core# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-connectivity# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #recipes-kernel# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #...# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #OpenEmbedded Core# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #meta# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Entity# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Layer# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Recipes# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Other# + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/slides/yocto-layer/yocto-layer-create.dia b/slides/yocto-layer/yocto-layer-create.dia index ae11e8cec0..0287e8345e 100644 --- a/slides/yocto-layer/yocto-layer-create.dia +++ b/slides/yocto-layer/yocto-layer-create.dia @@ -2,10 +2,10 @@ - + - + @@ -37,6 +37,9 @@ + + + @@ -53,22 +56,55 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + @@ -77,16 +113,16 @@ - + - + - + @@ -97,7 +133,7 @@ - + @@ -106,56 +142,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -172,7 +179,7 @@ - + @@ -183,12 +190,12 @@ - + - + @@ -205,7 +212,7 @@ - + @@ -216,15 +223,15 @@ - + - + - + - + @@ -233,21 +240,21 @@ - + - + - + - + - + @@ -261,10 +268,10 @@ - + - + @@ -275,18 +282,18 @@ - + - + - + - + - + @@ -295,21 +302,21 @@ - + - + - + - + - + @@ -323,10 +330,10 @@ - + - + @@ -337,18 +344,18 @@ - + - + - + - + - + @@ -357,21 +364,21 @@ - + - + - + - + - + @@ -385,10 +392,10 @@ - + - + @@ -399,18 +406,18 @@ - + - + - + - + - + @@ -419,21 +426,21 @@ - + - + - + - + - + @@ -447,10 +454,10 @@ - + - + @@ -461,51 +468,18 @@ - + - - - - - - - - - - - #Poky# - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -517,21 +491,21 @@ - + - + - + - + - + @@ -545,10 +519,10 @@ - + - + @@ -559,15 +533,15 @@ - + - + - + - + @@ -579,21 +553,21 @@ - + - + - + - + - + @@ -607,10 +581,10 @@ - + - + @@ -621,12 +595,12 @@ - + - + - + @@ -640,10 +614,10 @@ - + - + @@ -654,18 +628,18 @@ - + - + - + - + - + @@ -677,21 +651,21 @@ - + - + - + - + - + @@ -705,10 +679,10 @@ - + - + @@ -719,18 +693,18 @@ - + - + - + - + - + @@ -742,21 +716,21 @@ - + - + - + - + - + @@ -770,10 +744,10 @@ - + - + @@ -784,15 +758,15 @@ - + - + - + - + @@ -804,21 +778,21 @@ - + - + - + - + - + @@ -832,10 +806,10 @@ - + - + @@ -846,18 +820,18 @@ - + - + - + - + - + @@ -869,21 +843,21 @@ - + - + - + - + - + @@ -897,10 +871,10 @@ - + - + @@ -911,18 +885,18 @@ - + - + - + - + - + @@ -934,21 +908,21 @@ - + - + - + - + - + @@ -962,10 +936,10 @@ - + - + @@ -976,18 +950,18 @@ - + - + - + - + - + @@ -999,21 +973,21 @@ - + - + - + - + - + @@ -1027,10 +1001,10 @@ - + - + @@ -1041,18 +1015,18 @@ - + - + - + - + - + @@ -1064,21 +1038,21 @@ - + - + - + - + - + @@ -1092,10 +1066,10 @@ - + - + @@ -1106,18 +1080,18 @@ - + - + - + - + - + @@ -1129,21 +1103,21 @@ - + - + - + - + - + @@ -1157,10 +1131,10 @@ - + - + @@ -1171,18 +1145,18 @@ - + - + - + - + - + @@ -1194,21 +1168,21 @@ - + - + - + - + - + @@ -1222,10 +1196,10 @@ - + - + @@ -1236,15 +1210,15 @@ - + - + - + - + @@ -1256,21 +1230,21 @@ - + - + - + - + - + @@ -1284,10 +1258,10 @@ - + - + @@ -1298,18 +1272,18 @@ - + - + - + - + - + @@ -1321,21 +1295,21 @@ - + - + - + - + - + @@ -1349,10 +1323,10 @@ - + - + @@ -1363,18 +1337,18 @@ - + - + - + - + - + @@ -1386,24 +1360,24 @@ - + - + - + - + - + - + @@ -1415,24 +1389,24 @@ - + - + - + - + - + - + @@ -1444,21 +1418,21 @@ - + - + - + - + - + @@ -1472,10 +1446,10 @@ - + - + @@ -1486,18 +1460,18 @@ - + - + - + - + - + @@ -1509,21 +1483,21 @@ - + - + - + - + - + @@ -1537,10 +1511,10 @@ - + - + @@ -1551,18 +1525,18 @@ - + - + - + - + - + @@ -1574,21 +1548,21 @@ - + - + - + - + - + @@ -1602,10 +1576,10 @@ - + - + @@ -1616,18 +1590,18 @@ - + - + - + - + - + @@ -1639,21 +1613,21 @@ - + - + - + - + - + @@ -1667,10 +1641,10 @@ - + - + @@ -1681,18 +1655,18 @@ - + - + - + - + - + @@ -1701,21 +1675,21 @@ - + - + - + - + - + @@ -1729,10 +1703,10 @@ - + - + @@ -1743,18 +1717,18 @@ - + - + - + - + - + @@ -1766,24 +1740,24 @@ - + - + - + - + - + - + @@ -1795,24 +1769,24 @@ - + - + - + - + - + - + @@ -1824,21 +1798,21 @@ - + - + - + - + - + @@ -1852,10 +1826,10 @@ - + - + @@ -1866,15 +1840,15 @@ - + - + - + - + @@ -1888,10 +1862,10 @@ - + - + @@ -1902,15 +1876,15 @@ - + - + - + - + @@ -1924,10 +1898,10 @@ - + - + @@ -1938,18 +1912,18 @@ - + - + - + - + - + @@ -1961,21 +1935,21 @@ - + - + - + - + - + @@ -1989,10 +1963,10 @@ - + - + @@ -2003,18 +1977,18 @@ - + - + - + - + - + @@ -2026,21 +2000,21 @@ - + - + - + - + - + @@ -2054,10 +2028,10 @@ - + - + @@ -2068,15 +2042,15 @@ - + - + - + - + @@ -2090,10 +2064,10 @@ - + - + @@ -2104,12 +2078,12 @@ - + - + - + @@ -2123,10 +2097,10 @@ - + - + @@ -2137,7 +2111,7 @@ - + @@ -2157,21 +2131,21 @@ - + - + - + - + @@ -2185,10 +2159,10 @@ - + - + @@ -2199,10 +2173,10 @@ - + - + @@ -2222,7 +2196,7 @@ - + @@ -2242,21 +2216,21 @@ - + - + - + - + @@ -2270,10 +2244,10 @@ - + - + @@ -2284,10 +2258,10 @@ - + - + @@ -2307,21 +2281,21 @@ - + - + - + - + @@ -2335,10 +2309,10 @@ - + - + @@ -2349,15 +2323,15 @@ - + - + - + @@ -2371,10 +2345,10 @@ - + - + @@ -2385,7 +2359,7 @@ - + diff --git a/slides/yocto-layer/yocto-layer-intro.dia b/slides/yocto-layer/yocto-layer-intro.dia index 47ffb8b376..4b03c78f3f 100644 --- a/slides/yocto-layer/yocto-layer-intro.dia +++ b/slides/yocto-layer/yocto-layer-intro.dia @@ -2,10 +2,10 @@ - + - + @@ -37,6 +37,9 @@ + + + @@ -53,22 +56,46 @@ - + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + - + + - + @@ -77,16 +104,16 @@ - + - + - + @@ -97,7 +124,7 @@ - + @@ -106,56 +133,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -172,7 +170,7 @@ - + @@ -183,12 +181,12 @@ - + - + @@ -205,7 +203,7 @@ - + @@ -216,15 +214,15 @@ - + - + - + - + @@ -233,21 +231,21 @@ - + - + - + - + - + @@ -261,10 +259,10 @@ - + - + @@ -275,18 +273,18 @@ - + - + - + - + - + @@ -295,21 +293,21 @@ - + - + - + - + - + @@ -323,10 +321,10 @@ - + - + @@ -337,18 +335,18 @@ - + - + - + - + - + @@ -357,21 +355,21 @@ - + - + - + - + - + @@ -385,10 +383,10 @@ - + - + @@ -399,18 +397,18 @@ - + - + - + - + - + @@ -419,21 +417,21 @@ - + - + - + - + - + @@ -447,10 +445,10 @@ - + - + @@ -461,51 +459,18 @@ - + - - - - - - - - - - - #Poky# - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -517,21 +482,21 @@ - + - + - + - + - + @@ -545,10 +510,10 @@ - + - + @@ -559,15 +524,15 @@ - + - + - + - + @@ -579,21 +544,21 @@ - + - + - + - + - + @@ -607,10 +572,10 @@ - + - + @@ -621,12 +586,12 @@ - + - + - + @@ -640,10 +605,10 @@ - + - + @@ -654,18 +619,18 @@ - + - + - + - + - + @@ -677,21 +642,21 @@ - + - + - + - + - + @@ -705,10 +670,10 @@ - + - + @@ -719,18 +684,18 @@ - + - + - + - + - + @@ -742,21 +707,21 @@ - + - + - + - + - + @@ -770,10 +735,10 @@ - + - + @@ -784,15 +749,15 @@ - + - + - + - + @@ -804,21 +769,21 @@ - + - + - + - + - + @@ -832,10 +797,10 @@ - + - + @@ -846,18 +811,18 @@ - + - + - + - + - + @@ -869,21 +834,21 @@ - + - + - + - + - + @@ -897,10 +862,10 @@ - + - + @@ -911,18 +876,18 @@ - + - + - + - + - + @@ -934,21 +899,21 @@ - + - + - + - + - + @@ -962,10 +927,10 @@ - + - + @@ -976,18 +941,18 @@ - + - + - + - + - + @@ -999,21 +964,21 @@ - + - + - + - + - + @@ -1027,10 +992,10 @@ - + - + @@ -1041,18 +1006,18 @@ - + - + - + - + - + @@ -1064,21 +1029,21 @@ - + - + - + - + - + @@ -1092,10 +1057,10 @@ - + - + @@ -1106,18 +1071,18 @@ - + - + - + - + - + @@ -1129,21 +1094,21 @@ - + - + - + - + - + @@ -1157,10 +1122,10 @@ - + - + @@ -1171,18 +1136,18 @@ - + - + - + - + - + @@ -1194,21 +1159,21 @@ - + - + - + - + - + @@ -1222,10 +1187,10 @@ - + - + @@ -1236,15 +1201,15 @@ - + - + - + - + @@ -1256,21 +1221,21 @@ - + - + - + - + - + @@ -1284,10 +1249,10 @@ - + - + @@ -1298,18 +1263,18 @@ - + - + - + - + - + @@ -1321,21 +1286,21 @@ - + - + - + - + - + @@ -1349,10 +1314,10 @@ - + - + @@ -1363,18 +1328,18 @@ - + - + - + - + - + @@ -1386,24 +1351,24 @@ - + - + - + - + - + - + @@ -1415,24 +1380,24 @@ - + - + - + - + - + - + @@ -1444,21 +1409,21 @@ - + - + - + - + - + @@ -1472,10 +1437,10 @@ - + - + @@ -1486,18 +1451,18 @@ - + - + - + - + - + @@ -1509,21 +1474,21 @@ - + - + - + - + - + @@ -1537,10 +1502,10 @@ - + - + @@ -1551,18 +1516,18 @@ - + - + - + - + - + @@ -1574,21 +1539,21 @@ - + - + - + - + - + @@ -1602,10 +1567,10 @@ - + - + @@ -1616,18 +1581,18 @@ - + - + - + - + - + @@ -1639,21 +1604,21 @@ - + - + - + - + - + @@ -1667,10 +1632,10 @@ - + - + @@ -1681,18 +1646,18 @@ - + - + - + - + - + @@ -1701,21 +1666,21 @@ - + - + - + - + - + @@ -1729,10 +1694,10 @@ - + - + @@ -1743,18 +1708,18 @@ - + - + - + - + - + @@ -1766,24 +1731,24 @@ - + - + - + - + - + - + @@ -1795,24 +1760,24 @@ - + - + - + - + - + - + @@ -1824,21 +1789,21 @@ - + - + - + - + - + @@ -1852,10 +1817,10 @@ - + - + @@ -1866,15 +1831,15 @@ - + - + - + - + @@ -1888,10 +1853,10 @@ - + - + @@ -1902,15 +1867,15 @@ - + - + - + - + @@ -1924,10 +1889,10 @@ - + - + @@ -1938,18 +1903,18 @@ - + - + - + - + - + @@ -1961,21 +1926,21 @@ - + - + - + - + - + @@ -1989,10 +1954,10 @@ - + - + @@ -2003,18 +1968,18 @@ - + - + - + - + - + @@ -2026,21 +1991,21 @@ - + - + - + - + - + @@ -2054,10 +2019,10 @@ - + - + @@ -2068,15 +2033,15 @@ - + - + - + - + @@ -2090,10 +2055,10 @@ - + - + @@ -2104,12 +2069,12 @@ - + - + - + @@ -2123,10 +2088,10 @@ - + - + @@ -2137,7 +2102,7 @@ - + @@ -2157,21 +2122,21 @@ - + - + - + - + @@ -2185,10 +2150,10 @@ - + - + @@ -2199,10 +2164,10 @@ - + - + @@ -2222,7 +2187,7 @@ - + @@ -2242,21 +2207,21 @@ - + - + - + - + @@ -2270,10 +2235,10 @@ - + - + @@ -2284,10 +2249,10 @@ - + - + @@ -2307,21 +2272,21 @@ - + - + - + - + @@ -2335,10 +2300,10 @@ - + - + @@ -2349,15 +2314,15 @@ - + - + - + @@ -2371,10 +2336,10 @@ - + - + @@ -2385,7 +2350,7 @@ - + diff --git a/slides/yocto-layer/yocto-layer.typ b/slides/yocto-layer/yocto-layer.typ index b165eb2a9b..b58802adb8 100644 --- a/slides/yocto-layer/yocto-layer.typ +++ b/slides/yocto-layer/yocto-layer.typ @@ -19,16 +19,13 @@ - It is a good practice to begin a layer name with the prefix `meta-`. -=== Layers in Poky +=== Official Yocto layers -#align(center, [#image( - "/slides/yocto-overview/yocto-overview-poky.svg", - height: 90%, -)]) +#align(center, [#image("yocto-core-layers.svg", height: 90%)]) -=== Layers in Poky +=== Official Yocto layers -- The Poky _reference system_ is a set of basic common layers: +- The Yocto project provides a set of basic common layers: - meta @@ -38,13 +35,13 @@ - meta-yocto-bsp -- Poky is not a final set of layers. It is the common base. +- This is not a final set of layers. It is the common base. - Layers are added when needed. - When making modifications to the existing recipes or when adding new - ones, it is a good practice to avoid modifying Poky. Instead you can - create your own layers! + ones, it is a good practice to avoid modifying the layers. Instead you can + create your own ones! === Third party layers diff --git a/slides/yocto-licensing/yocto-licensing.typ b/slides/yocto-licensing/yocto-licensing.typ index fffc688833..b7e5ee70ef 100644 --- a/slides/yocto-licensing/yocto-licensing.typ +++ b/slides/yocto-licensing/yocto-licensing.typ @@ -158,12 +158,6 @@ it procures and will probably make it mandatory soon. === How to create SPDX3 SBoM with OpenEmbedded -- SPDX2.2 and SPDX3.0 are available in Yocto Scarthgap (SPDX2.2 enabled - by default) - -- To enable SPDX3, you must set `INHERIT += "create-spdx-3.0"` \ - `INHERIT:remove = "create-spdx"` to your configuration file - - The JSON SPDX file for the image will be generated in \ `tmp/deploy/images/MACHINE/` @@ -182,6 +176,10 @@ it procures and will probably make it mandatory soon. files themselves (when #yoctovar("SPDX_INCLUDE_SOURCES") is set). +- Note: in Yocto Scarthgap, enabling SPDX3 must be done by setting + `INHERIT += "create-spdx-3.0"` and `INHERIT:remove = "create-spdx"` + in a configuration file + === Example IMAGE-MACHINE.spdx.json output #text(size: 11pt)[ diff --git a/slides/yocto-overview/yocto-overview-poky.dia b/slides/yocto-overview/yocto-overview-poky.dia index 720933b763..3433e45cd3 100644 --- a/slides/yocto-overview/yocto-overview-poky.dia +++ b/slides/yocto-overview/yocto-overview-poky.dia @@ -2,10 +2,10 @@ - + - + @@ -37,6 +37,9 @@ + + + @@ -53,22 +56,55 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + @@ -85,7 +121,7 @@ - + @@ -116,10 +152,10 @@ - + - + @@ -145,10 +181,10 @@ - + - + @@ -174,10 +210,10 @@ - + - + @@ -188,7 +224,7 @@ - + @@ -205,7 +241,7 @@ - + @@ -221,7 +257,7 @@ - + @@ -238,7 +274,7 @@ - + @@ -266,10 +302,10 @@ - + - + @@ -280,7 +316,7 @@ - + @@ -294,10 +330,10 @@ - + - + @@ -336,7 +372,7 @@ - + @@ -350,10 +386,10 @@ - + - + @@ -384,10 +420,10 @@ - + - + @@ -398,7 +434,7 @@ - + @@ -412,10 +448,10 @@ - + - + @@ -446,10 +482,10 @@ - + - + @@ -460,7 +496,7 @@ - + @@ -474,10 +510,10 @@ - + - + @@ -496,7 +532,7 @@ - + @@ -513,7 +549,7 @@ - + @@ -544,10 +580,10 @@ - + - + @@ -558,7 +594,7 @@ - + @@ -575,7 +611,7 @@ - + @@ -606,10 +642,10 @@ - + - + @@ -620,7 +656,7 @@ - + @@ -637,7 +673,7 @@ - + @@ -653,7 +689,7 @@ - + @@ -667,10 +703,10 @@ - + - + @@ -704,10 +740,10 @@ - + - + @@ -718,7 +754,7 @@ - + @@ -732,10 +768,10 @@ - + - + @@ -769,10 +805,10 @@ - + - + @@ -783,7 +819,7 @@ - + @@ -800,7 +836,7 @@ - + @@ -831,10 +867,10 @@ - + - + @@ -845,7 +881,7 @@ - + @@ -859,10 +895,10 @@ - + - + @@ -881,7 +917,7 @@ - + @@ -898,7 +934,7 @@ - + @@ -929,10 +965,10 @@ - + - + @@ -943,7 +979,7 @@ - + @@ -957,10 +993,10 @@ - + - + @@ -994,10 +1030,10 @@ - + - + @@ -1008,7 +1044,7 @@ - + @@ -1022,10 +1058,10 @@ - + - + @@ -1059,10 +1095,10 @@ - + - + @@ -1073,7 +1109,7 @@ - + @@ -1087,10 +1123,10 @@ - + - + @@ -1124,10 +1160,10 @@ - + - + @@ -1138,7 +1174,7 @@ - + @@ -1152,10 +1188,10 @@ - + - + @@ -1189,10 +1225,10 @@ - + - + @@ -1203,7 +1239,7 @@ - + @@ -1217,10 +1253,10 @@ - + - + @@ -1254,10 +1290,10 @@ - + - + @@ -1268,7 +1304,7 @@ - + @@ -1285,7 +1321,7 @@ - + @@ -1316,10 +1352,10 @@ - + - + @@ -1330,7 +1366,7 @@ - + @@ -1344,10 +1380,10 @@ - + - + @@ -1381,10 +1417,10 @@ - + - + @@ -1395,7 +1431,7 @@ - + @@ -1409,10 +1445,10 @@ - + - + @@ -1446,10 +1482,10 @@ - + - + @@ -1475,10 +1511,10 @@ - + - + @@ -1504,10 +1540,10 @@ - + - + @@ -1518,7 +1554,7 @@ - + @@ -1532,10 +1568,10 @@ - + - + @@ -1569,10 +1605,10 @@ - + - + @@ -1583,7 +1619,7 @@ - + @@ -1597,10 +1633,10 @@ - + - + @@ -1634,10 +1670,10 @@ - + - + @@ -1648,7 +1684,7 @@ - + @@ -1662,10 +1698,10 @@ - + - + @@ -1699,10 +1735,10 @@ - + - + @@ -1713,7 +1749,7 @@ - + @@ -1727,10 +1763,10 @@ - + - + @@ -1769,7 +1805,7 @@ - + @@ -1783,10 +1819,10 @@ - + - + @@ -1820,10 +1856,10 @@ - + - + @@ -1849,10 +1885,10 @@ - + - + @@ -1878,10 +1914,10 @@ - + - + @@ -1892,7 +1928,7 @@ - + @@ -1906,10 +1942,10 @@ - + - + @@ -1928,7 +1964,7 @@ - + @@ -1942,10 +1978,10 @@ - + - + @@ -1964,7 +2000,7 @@ - + @@ -1978,10 +2014,10 @@ - + - + @@ -2015,10 +2051,10 @@ - + - + @@ -2029,7 +2065,7 @@ - + @@ -2043,10 +2079,10 @@ - + - + @@ -2080,10 +2116,10 @@ - + - + @@ -2094,7 +2130,7 @@ - + @@ -2108,10 +2144,10 @@ - + - + @@ -2130,7 +2166,7 @@ - + @@ -2147,7 +2183,7 @@ - + @@ -2163,7 +2199,7 @@ - + @@ -2180,7 +2216,7 @@ - + @@ -2211,10 +2247,10 @@ - + - + @@ -2225,7 +2261,7 @@ - + @@ -2239,10 +2275,10 @@ - + - + @@ -2296,10 +2332,10 @@ - + - + @@ -2310,7 +2346,7 @@ - + @@ -2324,10 +2360,10 @@ - + - + @@ -2361,10 +2397,10 @@ - + - + @@ -2375,7 +2411,7 @@ - + @@ -2389,10 +2425,10 @@ - + - + @@ -2411,7 +2447,7 @@ - + @@ -2425,10 +2461,10 @@ - + - + diff --git a/slides/yocto-overview/yocto-overview.typ b/slides/yocto-overview/yocto-overview.typ index c8cd1749a8..c3867b229c 100644 --- a/slides/yocto-overview/yocto-overview.typ +++ b/slides/yocto-overview/yocto-overview.typ @@ -4,7 +4,7 @@ #show: bootlin-theme -= Yocto Project and Poky reference system overview += Yocto Project and core layers overview == The Yocto Project overview @@ -127,13 +127,14 @@ In Yocto / OpenEmbedded, the _build engine_ is implemented by the `bitbake` prog - The word _Poky_ has several meanings -- Poky is a git repository that is assembled from other git - repositories: bitbake, openembedded-core, yocto-docs and meta-yocto - - poky is the _reference distro_ provided by the Yocto Project - meta-poky is the layer providing the poky reference distribution +- Up to the Walnascar (5.2) release, Poky was a git repository that was + assembled from other git repositories: bitbake, openembedded-core, yocto-docs + and meta-yocto + === The Yocto Project lexicon #align(center, [#image("yocto-project-overview.svg", height: 90%)]) @@ -151,23 +152,24 @@ In Yocto / OpenEmbedded, the _build engine_ is implemented by the `bitbake` prog - To build images for a BeagleBone Black, we need: - - The Poky reference system, containing all common recipes and tools. + - The Yocto core layers, containing all common recipes and tools. - The _meta-ti-bsp_ layer, a set of Texas Instruments specific recipes. -- All modifications are made in your own layer. Editing Poky or any - other third-party layer is a *no-go*! +- All modifications are made in your own layer. Editing openembedded-core or + any other third-party layer is a *no-go*! - We will set up this environment in the lab. -== The Poky reference system overview +== The Yocto core layers overview -=== Getting the Poky reference system +=== Getting the Poky reference system (up to Walnascar) -- All official projects part of the Yocto Project are available at \ - #link("https://git.yoctoproject.org/") +All official projects part of the Yocto Project are available at +#link("https://git.openembedded.org/") and +#link("https://git.yoctoproject.org/") - To download the Poky reference system: \ `git clone -b scarthgap https://git.yoctoproject.org/git/poky` @@ -181,7 +183,7 @@ In Yocto / OpenEmbedded, the _build engine_ is implemented by the `bitbake` prog corresponding to a release number. - A summary can be found at - #link("https://wiki.yoctoproject.org/wiki/Releases") + #link("https://www.yoctoproject.org/development/releases/") === Poky @@ -192,30 +194,108 @@ In Yocto / OpenEmbedded, the _build engine_ is implemented by the `bitbake` prog #grid( columns: 2, inset: (x: 0.5em, y: 0.5em), - [*bitbake\/*], + [#text(0.8em)[*bitbake\/*]], [Holds all scripts used by the `bitbake` command. Usually matches the stable release of the BitBake project.], - [*documentation\/*], + [#text(0.8em)[*documentation\/*]], [All documentation sources for the Yocto Project documentation. Can be used to generate nice PDFs.], - [*meta\/*], [Contains the OpenEmbedded-Core metadata.], - [*meta-skeleton\/*], + [#text(0.8em)[*meta\/*]], [Contains the OpenEmbedded-Core metadata.], + [#text(0.8em)[*meta-skeleton\/*]], [Contains template recipes for BSP and kernel development.], - [*meta-poky\/*], + [#text(0.8em)[*meta-poky\/*]], [Holds the configuration for the Poky reference distribution.], - [*meta-yocto-bsp\/*], + [#text(0.8em)[*meta-yocto-bsp\/*]], [ Configuration for the Yocto Project reference hardware board support package.], - [*LICENSE*], + [#text(0.8em)[*LICENSE*]], [ The license under which Poky is distributed (a mix of GPLv2 and MIT).], - [*oe-init-build-env*], + [#text(0.8em)[*oe-init-build-env*]], + [ Script to set up the OpenEmbedded build environment. It will create the build directory.], + + [#text(0.8em)[*scripts\/*]], + [ Contains scripts used to set up the environment, development tools, and tools to flash the generated images on the target.], +) + +=== Getting the Yocto reference layers (starting from Whinlatter) + +- The assembled poky git repository was deprecated with the Whinlatter (5.3) + release. + +- All source code is still the same but needs to be assembled from separate + gits: + + - Either manually: + `git clone https://git.openembedded.org/bitbake -b yocto-6.0` \ + `git clone https://git.openembedded.org/openembedded-core -b yocto-6.0` \ + `git clone https://git.yoctoproject.org/meta-yocto -b yocto-6.0` \ + + - Or using the new + #link( + "https://docs.yoctoproject.org/bitbake/next/bitbake-user-manual/bitbake-user-manual-environment-setup.html", + )[bitbake-setup] + utility. + +- Everything else stays the same. + +// @typstyle off +#align(center, + block( + fill: luma(240), + inset: 18pt, + radius: 8pt, + )[ + #align(left,[ + #set text(font: "DejaVu Sans Mono", size: 16pt) + #text("poky/")#text("bitbake/", fill: orange) #text(" bitbake/", fill: orange) + + #text("poky/")#text("meta/", fill: blue) #text(" openembedded-core/")#text("meta/", fill: blue) + + #text("poky/")#text("oe-init-build-env", fill: blue) #text(" → openembedded-core/")#text("oe-init-build-env", fill: blue) + + #text("poky/")#text("meta-poky/", fill: purple) #text(" meta-yocto/")#text("meta-poky/", fill: purple) + + #text("poky/")#text("meta-yocto-bsp/", fill: purple) #text(" meta-yocto/")#text("meta-yocto-bsp/", fill: purple) + ]) + ] +) + + +=== Getting the Yocto reference layers (starting from Whinlatter) + +#align(center, [#image("../yocto-layer/yocto-core-layers.svg", height: 90%)]) + +=== Yocto core layers source tree + +#grid( + columns: 2, + inset: (x: 0.5em, y: 0.5em), + [#text(0.8em)[*bitbake\/*]], + [Holds all scripts used by the `bitbake` command. Usually matches the stable release of the BitBake project.], + + [#text(0.8em)[*openembedded-core\/meta\/*]], + [Contains the OpenEmbedded-Core metadata.], + + [#text(0.8em)[*openembedded-core\/meta-skeleton\/*]], + [Contains template recipes for BSP and kernel development.], + + [#text(0.8em)[*openembedded-core\/LICENSE*]], + [ The license under which openembedded-core is distributed (a mix of GPLv2 and MIT).], + + [#text(0.8em)[*openembedded-core\/oe-init-build-env*]], [ Script to set up the OpenEmbedded build environment. It will create the build directory.], - [*scripts\/*], + [#text(0.8em)[*openembedded-core\/scripts\/*]], [ Contains scripts used to set up the environment, development tools, and tools to flash the generated images on the target.], + + [#text(0.8em)[*meta-yocto\/meta-poky\/*]], + [Holds the configuration for the Poky reference distribution.], + + [#text(0.8em)[*meta-yocto\/meta-yocto-bsp\/*]], + [ Configuration for the Yocto Project reference hardware board support package.], ) === Documentation diff --git a/slides/yocto-overview/yocto-project-overview.dia b/slides/yocto-overview/yocto-project-overview.dia index d561732b0c..804f4fe1ec 100644 --- a/slides/yocto-overview/yocto-project-overview.dia +++ b/slides/yocto-overview/yocto-project-overview.dia @@ -2,10 +2,10 @@ - + - + @@ -37,6 +37,9 @@ + + + @@ -53,22 +56,55 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + @@ -77,16 +113,16 @@ - + - + - + @@ -97,7 +133,7 @@ - + @@ -106,56 +142,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -172,7 +179,7 @@ - + @@ -183,12 +190,12 @@ - + - + @@ -205,7 +212,7 @@ - + @@ -216,15 +223,15 @@ - + - + - + - + @@ -236,12 +243,12 @@ - + - + - + @@ -255,10 +262,10 @@ - + - + @@ -269,18 +276,18 @@ - + - + - + - + - + @@ -292,12 +299,12 @@ - + - + - + @@ -311,10 +318,10 @@ - + - + @@ -325,18 +332,18 @@ - + - + - + - + - + @@ -348,12 +355,12 @@ - + - + - + @@ -367,10 +374,10 @@ - + - + @@ -381,18 +388,18 @@ - + - + - + - + - + @@ -404,12 +411,12 @@ - + - + - + @@ -423,10 +430,10 @@ - + - + @@ -437,51 +444,18 @@ - + - - - - - - - - - - - #Poky# - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -493,21 +467,21 @@ - + - + - + - + - + @@ -521,10 +495,10 @@ - + - + @@ -535,15 +509,15 @@ - + - + - + - + @@ -555,21 +529,21 @@ - + - + - + - + - + @@ -583,10 +557,10 @@ - + - + @@ -597,12 +571,12 @@ - + - + - + @@ -616,10 +590,10 @@ - + - + @@ -630,18 +604,18 @@ - + - + - + - + - + @@ -653,21 +627,21 @@ - + - + - + - + - + @@ -681,10 +655,10 @@ - + - + @@ -695,18 +669,18 @@ - + - + - + - + - + @@ -718,21 +692,21 @@ - + - + - + - + - + @@ -746,10 +720,10 @@ - + - + @@ -760,15 +734,15 @@ - + - + - + - + @@ -780,21 +754,21 @@ - + - + - + - + - + @@ -808,10 +782,10 @@ - + - + @@ -822,15 +796,15 @@ - + - + - + @@ -847,7 +821,7 @@ - + @@ -858,15 +832,15 @@ - + - + - + - + @@ -878,21 +852,21 @@ - + - + - + - + - + @@ -906,10 +880,10 @@ - + - + @@ -920,18 +894,18 @@ - + - + - + - + - + @@ -943,21 +917,21 @@ - + - + - + - + - + @@ -971,10 +945,10 @@ - + - + @@ -985,18 +959,18 @@ - + - + - + - + - + @@ -1008,21 +982,21 @@ - + - + - + - + - + @@ -1036,10 +1010,10 @@ - + - + @@ -1050,18 +1024,18 @@ - + - + - + - + - + @@ -1073,21 +1047,21 @@ - + - + - + - + - + @@ -1101,10 +1075,10 @@ - + - + @@ -1115,18 +1089,18 @@ - + - + - + - + - + @@ -1138,21 +1112,21 @@ - + - + - + - + - + @@ -1166,10 +1140,10 @@ - + - + @@ -1180,18 +1154,18 @@ - + - + - + - + - + @@ -1203,21 +1177,21 @@ - + - + - + - + - + @@ -1231,10 +1205,10 @@ - + - + @@ -1245,15 +1219,15 @@ - + - + - + - + @@ -1265,21 +1239,21 @@ - + - + - + - + - + @@ -1293,10 +1267,10 @@ - + - + @@ -1307,18 +1281,18 @@ - + - + - + - + - + @@ -1330,21 +1304,21 @@ - + - + - + - + - + @@ -1358,10 +1332,10 @@ - + - + @@ -1372,18 +1346,18 @@ - + - + - + - + - + @@ -1395,24 +1369,24 @@ - + - + - + - + - + - + @@ -1424,24 +1398,24 @@ - + - + - + - + - + - + @@ -1456,12 +1430,12 @@ - + - + - + @@ -1475,10 +1449,10 @@ - + - + @@ -1489,18 +1463,18 @@ - + - + - + - + - + @@ -1512,21 +1486,21 @@ - + - + - + - + - + @@ -1540,10 +1514,10 @@ - + - + @@ -1554,18 +1528,18 @@ - + - + - + - + - + @@ -1577,21 +1551,21 @@ - + - + - + - + - + @@ -1605,10 +1579,10 @@ - + - + @@ -1619,18 +1593,18 @@ - + - + - + - + - + @@ -1642,21 +1616,21 @@ - + - + - + - + - + @@ -1670,10 +1644,10 @@ - + - + @@ -1684,18 +1658,18 @@ - + - + - + - + - + @@ -1707,12 +1681,12 @@ - + - + - + @@ -1726,10 +1700,10 @@ - + - + @@ -1740,18 +1714,18 @@ - + - + - + - + - + @@ -1763,24 +1737,24 @@ - + - + - + - + - + - + @@ -1792,24 +1766,24 @@ - + - + - + - + - + - + @@ -1821,21 +1795,21 @@ - + - + - + - + - + @@ -1849,10 +1823,10 @@ - + - + @@ -1863,15 +1837,15 @@ - + - + - + - + @@ -1885,10 +1859,10 @@ - + - + @@ -1899,15 +1873,15 @@ - + - + - + - + @@ -1921,10 +1895,10 @@ - + - + @@ -1935,18 +1909,18 @@ - + - + - + - + - + @@ -1958,21 +1932,21 @@ - + - + - + - + - + @@ -1986,10 +1960,10 @@ - + - + @@ -2000,18 +1974,18 @@ - + - + - + - + - + @@ -2023,21 +1997,21 @@ - + - + - + - + - + @@ -2051,10 +2025,10 @@ - + - + @@ -2065,15 +2039,15 @@ - + - + - + - + @@ -2087,10 +2061,10 @@ - + - + @@ -2101,12 +2075,12 @@ - + - + - + @@ -2120,10 +2094,10 @@ - + - + @@ -2134,7 +2108,7 @@ - + @@ -2154,21 +2128,21 @@ - + - + - + - + @@ -2182,10 +2156,10 @@ - + - + @@ -2196,10 +2170,10 @@ - + - + @@ -2219,7 +2193,7 @@ - + @@ -2239,21 +2213,21 @@ - + - + - + - + @@ -2267,10 +2241,10 @@ - + - + @@ -2281,10 +2255,10 @@ - + - + @@ -2304,21 +2278,21 @@ - + - + - + - + @@ -2332,10 +2306,10 @@ - + - + @@ -2346,15 +2320,15 @@ - + - + - + @@ -2368,10 +2342,10 @@ - + - + @@ -2382,7 +2356,7 @@ - + diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced-extend.dia b/slides/yocto-recipe-advanced/yocto-recipe-advanced-extend.dia index fdfde0dfa1..2db71a8160 100644 --- a/slides/yocto-recipe-advanced/yocto-recipe-advanced-extend.dia +++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced-extend.dia @@ -151,7 +151,7 @@ - #Poky# + #openembedded-core# diff --git a/slides/yocto-recipe-basics/tasks-basics.dia b/slides/yocto-recipe-basics/tasks-basics.dia index 625738a38b..1db07c64e1 100644 --- a/slides/yocto-recipe-basics/tasks-basics.dia +++ b/slides/yocto-recipe-basics/tasks-basics.dia @@ -58,11 +58,9 @@ - - - - - + + + @@ -72,34 +70,41 @@ - + + + + + + + + - + - + - + @@ -148,7 +153,7 @@ - + @@ -157,7 +162,7 @@ - + @@ -174,10 +179,10 @@ - + - + @@ -191,7 +196,7 @@ - + @@ -247,7 +252,7 @@ - + @@ -261,7 +266,7 @@ - + @@ -280,13 +285,13 @@ - + - + - + @@ -309,10 +314,10 @@ - + - + @@ -326,7 +331,7 @@ - + @@ -348,13 +353,13 @@ - + - + @@ -379,16 +384,16 @@ - + - + - - - - + + + + @@ -407,16 +412,13 @@ - - - - + - + @@ -430,7 +432,7 @@ - + @@ -449,16 +451,16 @@ - + - + - + @@ -473,51 +475,15 @@ - + - + - - - - - - #${S}# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -538,12 +504,12 @@ - + - + - + @@ -557,7 +523,7 @@ - + @@ -571,19 +537,19 @@ - + - + - + - + - - + + @@ -610,19 +576,18 @@ - - + - + - + - + - + @@ -643,12 +608,12 @@ - + - + - + @@ -662,7 +627,7 @@ - + @@ -676,21 +641,21 @@ - + - + - + - + - - - - + + + + @@ -709,22 +674,19 @@ - - - - + - + - + - - - - + + + + @@ -744,24 +706,24 @@ - + - + - + - + - + - + @@ -776,12 +738,12 @@ - + - + - + @@ -795,7 +757,7 @@ - + @@ -809,18 +771,18 @@ - + - + - + - + - + @@ -841,12 +803,12 @@ - + - + - + @@ -860,7 +822,7 @@ - + @@ -874,19 +836,19 @@ - + - + - + - + - - + + @@ -913,19 +875,19 @@ - - + + - + - + - + - + @@ -946,12 +908,12 @@ - + - + - + @@ -965,7 +927,7 @@ - + @@ -979,21 +941,21 @@ - + - + - + - + - - - - + + + + @@ -1013,21 +975,21 @@ - + - + - + - + - - - - + + + + @@ -1047,24 +1009,24 @@ - + - + - + - + - + - + - + @@ -1079,12 +1041,12 @@ - + - + - + @@ -1098,7 +1060,105 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #${UNPACKDIR}# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #${S}# + + + + + + + + + @@ -1112,7 +1172,7 @@ - + diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics-organisation.dia b/slides/yocto-recipe-basics/yocto-recipe-basics-organisation.dia index adf253ecca..9155e7249e 100644 --- a/slides/yocto-recipe-basics/yocto-recipe-basics-organisation.dia +++ b/slides/yocto-recipe-basics/yocto-recipe-basics-organisation.dia @@ -157,7 +157,7 @@ - #Poky# + #openembedded-core# diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics-overview.dia b/slides/yocto-recipe-basics/yocto-recipe-basics-overview.dia index 85a1a61fd7..46104a649f 100644 --- a/slides/yocto-recipe-basics/yocto-recipe-basics-overview.dia +++ b/slides/yocto-recipe-basics/yocto-recipe-basics-overview.dia @@ -157,7 +157,7 @@ - #Poky# + #openembedded-core# diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics.typ b/slides/yocto-recipe-basics/yocto-recipe-basics.typ index b4e08a8b1f..7fb63a6914 100644 --- a/slides/yocto-recipe-basics/yocto-recipe-basics.typ +++ b/slides/yocto-recipe-basics/yocto-recipe-basics.typ @@ -286,9 +286,6 @@ a different `defconfig` can be used for different controlled by the #yoctovar("S") variable. If the directory has another name, you must explicitly define #yoctovar("S"). -- If the scheme is `git`, #yoctovar("S") must be set to - `${WORKDIR}`/git - === The source locations: license files - License files must have their own checksum. @@ -387,6 +384,8 @@ do_task() { - #yoctovar("WORKDIR"): the recipe's working directory + - #yoctovar("UNPACKDIR"): The directory where fetched sources are placed + - #yoctovar("S"): The directory where the source code is extracted - #yoctovar("B"): The directory where `bitbake` places the objects @@ -474,7 +473,7 @@ SRC_URI += "file://joystick-support.patch \ listed in #yoctovar("SRC_URI") variable with #yoctovar("PATCHTOOL"). -- By default, `PATCHTOOL = "quilt"` in Poky. +- By default, `PATCHTOOL = "quilt"` in openembedded-core. - Possible values: `git`, `patch` and `quilt`. @@ -506,7 +505,6 @@ SRC_URI += "file://joystick-support.patch \ SRC_URI = "git://git.example.com/hello;protocol=https;branch=master" SRCREV = "2d47b4eb66e705458a17622c2e09367300a7b118" - S = "${WORKDIR}/git" LIC_FILES_CHKSUM = "file://hello.c;beginline=3;endline=21;md5=58e..." do_compile() { diff --git a/slides/yocto-recipe-extra/yocto-recipe-extra.typ b/slides/yocto-recipe-extra/yocto-recipe-extra.typ index 1c2f461730..ce0687fcf9 100644 --- a/slides/yocto-recipe-extra/yocto-recipe-extra.typ +++ b/slides/yocto-recipe-extra/yocto-recipe-extra.typ @@ -305,12 +305,12 @@ Real life example of anonymous function: \ === Inspecting available `PACKAGECONFIG flags` -- `${POKY_DIR}/scripts/contrib/list-packageconfig-flags.py` shows the +- `${OECORE_DIR}/scripts/contrib/list-packageconfig-flags.py` shows the #yoctovar("PACKAGECONFIG") varflags available for each recipe: #text(size: 15pt)[ ```console - $ ../poky/scripts/contrib/list-packageconfig-flags.py + $ ../openembedded-core/scripts/contrib/list-packageconfig-flags.py RECIPE NAME PACKAGECONFIG FLAGS ================================== alsa-plugins aaf jack libav maemo-plugin maemo-resource-manager pulseaudio samplerate speexdsp connman 3g bluez client iptables l2tp nfc nftables openvpn pptp systemd tist vpnc wifi ... @@ -322,9 +322,9 @@ Real life example of anonymous function: \ #text(size: 14pt)[ ```console - $ ../poky/scripts/contrib/list-packageconfig-flags.py -a + $ ../openembedded-core/scripts/contrib/list-packageconfig-flags.py -a connman-1.41 - /home/murray/w/yocto-stm32-labs/poky/meta/recipes-connectivity/connman/connman_1.41.bb + /home/murray/w/yocto-stm32-labs/openembedded-core/meta/recipes-connectivity/connman/connman_1.41.bb PACKAGECONFIG wispr iptables client 3g wifi bluez PACKAGECONFIG[wifi] --enable-wifi, --disable-wifi, wpa-supplicant, wpa-supplicant PACKAGECONFIG[bluez] --enable-bluetooth, --disable-bluetooth, bluez5, bluez5 @@ -357,6 +357,43 @@ Real life example of anonymous function: \ " ```] +== Configuration fragments + +=== Configuration fragments + +- Allow to group consistent configuration pieces together + +- The idea is to ease the configuration, avoiding users to manually modify configuration files + +- The `bitbake-config-build` utility can be used to enable or disable a configuration fragment in `toolcfg.conf` + +- Each layer can provide its own configuration fragments + +- Example: Adding the `root-login-with-empty-password`: + + - Provided by #link("https://git.openembedded.org/openembedded-core/tree/meta/conf/fragments/yocto/root-login-with-empty-password.conf?h=wrynose")[openembedded-core] + + - Allows to log as root but also to have a root user with an empty password + + ```console + bitbake-config-build enable-fragment core/yocto/root-login-with-empty-password` + ``` + +=== Built-in configuration fragments + +- Bitbake does support to have fragments that directly map to a variable + + - E.g. enabling fragment `foo/bar` might be equivalent to using `FOO = "bar"` + +- The list of built-in configuration fragments is controlled by `OE_FRAGMENTS_BUILTIN` + +- Openembedded-core does implement this for `MACHINE` and `DISTRO` variables + + - Using fragments `distro/poky` and `machine/qemux86-64` is equivalent to + adding `DISTRO = "poky"` and `MACHINE = "qemux86-64"` in you `local.conf` + +- This allows to set basic configurations without having to ever modify a configuration file manually. + == Package splitting @@ -432,7 +469,7 @@ FILES:${PN}-dbg = "\ - The package named just `${PN}` is the one that gets installed in the root filesystem. -- In Poky, defaults to: +- In Openembedded-core, defaults to: #v(0.5em) diff --git a/slides/yocto-sdk-lab/yocto-sdk-lab.typ b/slides/yocto-sdk-lab/yocto-sdk-lab.typ index 1be23fad0b..88d02dfacb 100644 --- a/slides/yocto-sdk-lab/yocto-sdk-lab.typ +++ b/slides/yocto-sdk-lab/yocto-sdk-lab.typ @@ -4,7 +4,7 @@ #show: bootlin-theme -#setuplabframe([Create and use a Poky SDK], [ +#setuplabframe([Create and use a Yocto SDK], [ - Generate an SDK diff --git a/slides/yocto-sdk/yocto-sdk.typ b/slides/yocto-sdk/yocto-sdk.typ index ff24c4e8fa..c8fca070e2 100644 --- a/slides/yocto-sdk/yocto-sdk.typ +++ b/slides/yocto-sdk/yocto-sdk.typ @@ -26,8 +26,8 @@ === The Yocto Project SDK -- The Poky reference system is used to generate images, by building many - applications and doing a lot of configuration work. +- OpenEmbedded is used to generate images, by building many applications and + doing a lot of configuration work. - When developing an application, we only care about the application itself. @@ -40,7 +40,7 @@ - It includes a toolchain, libraries headers and all the needed tools. - This SDK can be installed on any computer and is self-contained. The - presence of Poky is not required for the SDK to fully work. + presence of OpenEmbedded is not required for the SDK to fully work. === Available SDKs @@ -63,7 +63,7 @@ - The toolchain in the SDKs is self-contained (linked to an SDK embedded libc). -- The SDKs generated with Poky are distributed in the form of a shell +- The SDKs generated with OpenEmbedded are distributed in the form of a shell script. - Executing this script extracts the tools and sets up the environment. @@ -86,7 +86,7 @@ - `$BUILDDIR/tmp/deploy/sdk` - Example: \ - `poky-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-5.0.sh` + `poky-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-6.0.sh` - The SDK will be configured to be compatible with the specified #yoctovar("MACHINE"). @@ -109,7 +109,7 @@ - `$BUILDDIR/tmp/deploy/sdk` - Example: - `poky-glibc-x86_64-core-image-minimal-cortexa8hf-neon-toolchain-5.0.sh` + `poky-glibc-x86_64-core-image-minimal-cortexa8hf-neon-toolchain-6.0.sh` - The SDK will be configured to be compatible with the specified #yoctovar("MACHINE"). @@ -148,23 +148,23 @@ - The script asks where to install the SDK. Defaults to `/opt/poky/` - - Example: `/opt/poky/5.0` + - Example: `/opt/poky/6.0` #v(0.5em) #[ #show raw.where(lang: "console", block: true): set text(size: 14.5pt) ```console - $ ./poky-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-5.0.sh - Poky (Yocto Project Reference Distro) SDK installer version 5.0 + $ ./poky-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-6.0.sh + Poky (Yocto Project Reference Distro) SDK installer version 6.0 =============================================================== - Enter target directory for SDK (default: /opt/poky/5.0): - You are about to install the SDK to "/opt/poky/5.0". Proceed[Y/n]? + Enter target directory for SDK (default: /opt/poky/6.0): + You are about to install the SDK to "/opt/poky/6.0". Proceed[Y/n]? Extracting SDK.................done Setting it up...done SDK has been successfully set up and is ready to be used. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. - $ . /opt/poky/5.0/environment-setup-cortexa8hf-neon-poky-linux-gnueabi + $ . /opt/poky/6.0/environment-setup-cortexa8hf-neon-poky-linux-gnueabi ```] === Use the SDK @@ -172,7 +172,7 @@ - To use the SDK, a script is available to set up the environment: #[ #show raw.where(lang: "console", block: true): set text(size: 14.5pt) ```console - $ cd /opt/poky/5.0 + $ cd /opt/poky/6.0 $ source ./environment-setup-cortexa8hf-neon-poky-linux-gnueabi ```]