docs: editorial repairs to the examples
v3 cover docs: editorial repairs to the examples
These are repairs to the examples themselves. No block is given a language and no block changes how it is highlighted; what changes is the text of the examples. Each commit stands on its own: a reader is better served by every one of them whether or not anything else in this area lands.
They also clear the way for a later series that states the language of each code block. A block cannot say it is a console session without a prompt, or C with a bare "..." in place of the code it omits, or anything at all while it holds more than one file under a single "::". These remove exactly those obstacles.
1. a preamble on the root prompts written as a bare "#", which the rest already carry
2. the copy button reduced to the command, for every prompt shape rather than just "$ "
3. a prompt on the command blocks the prose says to run, and on transcripts only the opening line, plus dropping the bare trailing "$" a returning prompt leaves behind
4. elided code written as a comment in the language around it
5. placeholders the reader must replace put in angle brackets
6. real accounts and home directories replaced with /home/user
7. kernel metadata examples split so each block holds one file, with the filename moved to the block's caption
8. the ARCHIVER_MODE varflag examples given comments BitBake can parse, since a "#" after a value is not an inline comment
9. "partition" dropped as a wic kickstart command; wic has rejected it since the pykickstart parser was replaced in 2016
10. a list continuation indented, so its "::" stops swallowing the paragraph and the note beneath it
The first three are related, and the third has been under discussion. The great majority of command blocks already carry a prompt, so patch 3 finishes a convention rather than proposing one, and patches 1 and 2 remove the cost that convention imposes on a reader.
A command run on the target takes the full user@machine:path prompt, mirroring the root prompt beside it, and one run on the build host takes a bare "$" unless its working directory is part of the instruction. The copy button and a mouse selection already handle both forms, so which prompt a block carries does not change what copying it gives you.
Patch 2 is the substance: copybutton_prompt_text was the literal "$ ", so on a block prompted any other way nothing matched, and sphinx- copybutton then falls back to copying every line, prompt, and output alike. That took in the root prompts, the Windows sessions in dev-manual/start.rst, and the pydevshell session, so the pattern now names each prompt shape the manuals use. A mouse selection is left alone, so it still takes the output; that is deliberate, and was your call on the v1 thread.
Patch 1 comes first because patch 2 treats "#" as a prompt only when a preamble precedes it. That is not a shortcut: a bare "#" opens a root prompt, a comment, and a line of program output alike, and the manuals use it for output and for comments far more often than for a prompt. Giving the stragglers the preamble the rest already use makes the rule true rather than approximate.
Every commit builds with zero warnings under -W, which is the Makefile default, and each was built on its own rather than only at the tip. sphinx-lint over the touched files is unchanged from master-next. changes in v3:
- patches 9 and 10 are back. You applied them on 2026-09-22 and the master-next rewind of 2026-09-23 took them out again, so they are unapplied; re-sending rather than risk losing them
- patch 1 also prompts the kernel-dev "make scripts" block Quentin spotted
- patch 2's comment is a third of the length and no longer contradicts itself about scope, and a ">>> " alternative covers the one Python interpreter example
- patch 2 gains a "(gdb) " alternative. The console lexer already marks that prompt, so a selection skipped it while the button copied it; the two now agree on the one block where they still differed
- patch 3 prompts the weston block, which had none, and gives the commands run on the target the full user@machine:path prompt rather than a bare "$"
- patch 5 leaves the DMARC From: header alone. Nothing in it is for the reader to replace, so it needed neither a placeholder nor anonymising
- patch 5 writes the git config name as <firstname> <lastname>, and says the SRCREV values are commit SHAs
- patch 6 leaves the prompt on the setup-layers example. Its command is a relative path, so the working directory in the prompt is what says where it runs
- patch 8 separates each comment from the setting above it
changes in v2:
- rebased on master-next, which is where it now applies; the one conflict was the ARCHIVER_MODE block, where d5216e3fd4be had already removed the srpm varflag
- patch 2 no longer touches the stylesheet: a mouse selection keeps the output, and only the copy button is changed
- patch 7 takes the theme's whole font stack for the caption
- patch 1 uses a generic root@machine prompt where the surrounding text names no board
Trevor Woerner (10):
docs: give the root prompts a preamble
docs: copy only the command from a console block
docs: show a prompt on commands the reader is meant to type
docs: write an elided passage as a comment
docs: mark the placeholders in examples
docs: remove real accounts from the examples
kernel-dev: give each example block one thing to hold
ref-manual: put the ARCHIVER_MODE comments on their own lines
ref-manual: drop "partition" as a wic kickstart command
dev-manual: indent a list continuation so the code block ends
documentation/brief-yoctoprojectqs/index.rst | 2 +- documentation/bsp-manual/bsp.rst | 4 +- documentation/conf.py | 19 ++- .../contributor-guide/recipe-style-guide.rst | 2 +- .../contributor-guide/submit-changes.rst | 63 ++++---- .../dev-manual/creating-fragments.rst | 4 +- documentation/dev-manual/debugging.rst | 13 +- documentation/dev-manual/devtool.rst | 8 +- documentation/dev-manual/disk-space.rst | 4 +- documentation/dev-manual/hashequivserver.rst | 2 +- documentation/dev-manual/layers.rst | 10 +- .../dev-manual/limiting-resources.rst | 2 +- documentation/dev-manual/new-recipe.rst | 6 +- documentation/dev-manual/packages.rst | 4 +- .../dev-manual/python-development-shell.rst | 1 - documentation/dev-manual/qemu.rst | 10 +- documentation/dev-manual/start.rst | 2 +- .../dev-manual/upgrading-recipes.rst | 18 +-- documentation/dev-manual/wayland.rst | 8 +- documentation/dev-manual/wic.rst | 44 +++--- documentation/kernel-dev/advanced.rst | 139 ++++++++++-------- documentation/kernel-dev/common.rst | 41 +++--- .../migration-guides/migration-2.1.rst | 4 +- .../migration-guides/migration-2.5.rst | 4 +- .../migration-guides/migration-3.2.rst | 2 +- .../migration-guides/migration-4.0.rst | 2 +- .../migration-guides/migration-5.2.rst | 16 +- .../migration-guides/migration-5.3.rst | 10 +- .../migration-guides/release-notes-4.2.rst | 2 +- .../migration-guides/release-notes-5.3.rst | 2 +- documentation/overview-manual/concepts.rst | 2 +- documentation/profile-manual/usage.rst | 4 +- documentation/ref-manual/classes.rst | 8 +- .../ref-manual/devtool-reference.rst | 10 +- documentation/ref-manual/faq.rst | 6 +- documentation/ref-manual/fragments.rst | 16 +- documentation/ref-manual/kickstart.rst | 9 +- documentation/ref-manual/qa-checks.rst | 4 +- documentation/ref-manual/variables.rst | 43 ++++-- documentation/sdk-manual/extensible.rst | 6 +- .../sphinx-static/theme_overrides.css | 28 ++++ .../test-manual/reproducible-builds.rst | 2 +- documentation/test-manual/runtime-testing.rst | 4 +- 43 files changed, 326 insertions(+), 264 deletions(-)
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 1/10 docs: give the root prompts a preamble
A bare "#" starting a line is a root prompt, a comment, and a line of program output all at once, and nothing can tell them apart. Most root prompts in the manuals already carry a preamble naming the machine, and the stragglers are what make the distinction unreliable.
Add the preamble the others already use: the machine the surrounding steps name, or a generic "machine" where they name none.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- the kernel-dev "make scripts" block is prompted too, with its working directory in the second prompt
changes in v2:
- rebased on master-next
- the SystemTap example uses a generic root@machine prompt; the two kernel-dev ones keep qemux86, which the surrounding steps name
--- documentation/kernel-dev/common.rst | 8 ++++---- documentation/profile-manual/usage.rst | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
documentation/kernel-dev/common.rst +4 -4
@@ -722,7 +722,7 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio .. code-block:: none - # dmesg | less + root@qemux86:~# dmesg | less You should see the results of your ``printk`` statements as part of the output
@@ -878,7 +878,7 @@ Section. .. code-block:: none - # dmesg | less + root@qemux86:~# dmesg | less You should see the results of your ``printk`` statements as part of the output when you scroll down the
@@ -1554,8 +1554,8 @@ directory. Next, ``make`` the scripts: .. code-block:: none - # cd /usr/src/kernel - # make scripts + root@machine:~# cd /usr/src/kernel + root@machine:/usr/src/kernel# make scripts Because all SDK image recipes include ``dev-pkgs``, the ``kernel-dev`` packages will be installed as part of the SDK image and
documentation/profile-manual/usage.rst +1 -1
@@ -1801,7 +1801,7 @@ probe, you'd just install SystemTap on the system you want to probe, and directly run the probe on that system e.g. assuming the name of the file containing the above text is ``trace_open.stp``:: - # stap trace_open.stp + root@machine:~# stap trace_open.stp What SystemTap does under the covers to run this probe is 1) parse and convert the probe to an equivalent "C" form, 2) compile the "C" form
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 2/10 docs: copy only the command from a console block
In reply to Trevor WoernerThe copy button matches the literal "$ " prompt, so on a block prompted any other way it matches nothing and falls back to copying every line, prompt, and output included. Match a pattern covering each prompt shape the manuals use instead, so the button gives the command alone whatever the prompt looks like.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- the comment is shorter and no longer contradicts itself about scope
- a ">>> " alternative covers the one Python interpreter example
- a "(gdb) " alternative. The console lexer already marks that prompt, so a selection skipped it while the button copied it; the two now agree
changes in v2:
- dropped the stylesheet change, so a mouse selection keeps the output
- the comment now says this governs the copy button only, and only reaches a block the console lexer has read
--- documentation/conf.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
documentation/conf.py +18 -1
@@ -242,4 +242,21 @@ intersphinx_mapping = { # -- sphinx_copybutton configuration ----------------------------------------- # sphinx-copybutton configuration -copybutton_prompt_text = "$ " +# Applies to the copy button only; a mouse selection is untouched. +# Not scoped to console blocks, so every alternative has to be safe in a +# BitBake or configuration example too. +# No rule for a bare "#": it opens a comment, a root prompt, and a +# line of program output alike. +copybutton_prompt_text = "|".join(( + r"^(?:\S+[@:]\S*)?\$\s+", # "$ ", and "user@host:~$ " + r"^\S+[@:]\S*#\s+", # "root@machine:~# ", a root prompt + r"^[A-Za-z]:\\[^>]*>\s*", # "C:\WINDOWS\system32>", cmd.exe + r"^DISKPART>\s*", # diskpart prints a prompt of its own + r"^pydevshell>\s+", # bitbake -c pydevshell + r"^>>> ", # a Python interpreter session + r"^\(gdb\)\s+", # a gdb session +)) +copybutton_prompt_is_regexp = True +copybutton_only_copy_prompt_lines = True +copybutton_remove_prompts = True +copybutton_line_continuation_character = "\\"
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 3/10 docs: show a prompt on commands the reader is meant to type
In reply to Trevor WoernerMost command blocks in the manuals start their lines with "$", but a scattering of them do not, and those read as a file listing rather than as something to run. Give them the prompt the surrounding pages already use.
Transcripts take a prompt on their opening line alone. Two removals go with it, because both only matter once a line is a command: a bare "$" at the end, which is the prompt returning after the command finished, and a trailing "\" on a Windows path, which a shell reads as a continuation into the output.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- the weston command is prompted; it had none
- commands run on the target take the full user@machine:path prompt, mirroring the root prompt, rather than a bare "$"
changes in v2:
- rebased on master-next; no other change
--- documentation/brief-yoctoprojectqs/index.rst | 2 +- .../contributor-guide/recipe-style-guide.rst | 2 +- .../contributor-guide/submit-changes.rst | 60 +++++++++---------- .../dev-manual/creating-fragments.rst | 4 +- documentation/dev-manual/debugging.rst | 1 - documentation/dev-manual/devtool.rst | 8 +-- documentation/dev-manual/disk-space.rst | 4 +- documentation/dev-manual/hashequivserver.rst | 2 +- .../dev-manual/limiting-resources.rst | 2 +- documentation/dev-manual/new-recipe.rst | 6 +- documentation/dev-manual/packages.rst | 2 +- .../dev-manual/python-development-shell.rst | 1 - documentation/dev-manual/qemu.rst | 8 +-- documentation/dev-manual/start.rst | 2 +- documentation/dev-manual/wayland.rst | 8 +-- documentation/kernel-dev/common.rst | 3 - .../migration-guides/migration-2.1.rst | 4 +- .../migration-guides/migration-2.5.rst | 4 +- .../migration-guides/migration-4.0.rst | 2 +- .../migration-guides/migration-5.3.rst | 10 ++-- .../migration-guides/release-notes-4.2.rst | 2 +- .../migration-guides/release-notes-5.3.rst | 2 +- documentation/ref-manual/classes.rst | 8 +-- .../ref-manual/devtool-reference.rst | 2 - documentation/ref-manual/fragments.rst | 16 ++--- documentation/ref-manual/qa-checks.rst | 4 +- documentation/ref-manual/variables.rst | 6 +- .../test-manual/reproducible-builds.rst | 2 +- documentation/test-manual/runtime-testing.rst | 4 +- 29 files changed, 87 insertions(+), 94 deletions(-)
documentation/brief-yoctoprojectqs/index.rst +1 -1
@@ -373,7 +373,7 @@ layer>`: First, clone the layer next to the other layers:: - git clone -b &DISTRO_NAME_NO_CAP; https://git.yoctoproject.org/meta-raspberrypi ../layers/meta-raspberrypi + $ git clone -b &DISTRO_NAME_NO_CAP; https://git.yoctoproject.org/meta-raspberrypi ../layers/meta-raspberrypi #. **Add Your Layer to the Layer Configuration File:** Before you can use it, you must add the layer and its dependencies to your :ref:`structure-build-conf-bblayers.conf`
documentation/contributor-guide/recipe-style-guide.rst +1 -1
@@ -436,7 +436,7 @@ By default, patches created with ``git format-patch`` have a `Git` version signa To avoid having a `Git` signature at the end of generated or updated patches, you can use `Git` configuration settings:: - git config --global format.signature "" + $ git config --global format.signature "" .. note:: Patches generated or updated by ``devtool`` are created with no signature.
documentation/contributor-guide/submit-changes.rst +30 -30
183 lines not on this page · raw message
documentation/dev-manual/creating-fragments.rst +2 -2
@@ -86,7 +86,7 @@ For now, our fragment exists and is listed by the enable this fragment, use the :ref:`ref-bitbake-config-build-enable-fragment` command:: - bitbake-config-build enable-fragment meta-custom/custom-fragment + $ bitbake-config-build enable-fragment meta-custom/custom-fragment .. note::
@@ -143,4 +143,4 @@ configuration file: You can then use the :ref:`ref-bitbake-config-build-enable-fragment` command to set a value to the ``CUSTOM_VARIABLE`` variable:: - bitbake-config-build enable-fragment custom-builtin-fragment/somevalue + $ bitbake-config-build enable-fragment custom-builtin-fragment/somevalue
documentation/dev-manual/debugging.rst +0 -1
@@ -821,7 +821,6 @@ missing dependency clearly visible at the end:: ^ compilation terminated. make: *** [tools/snep-send.o] Error 1 - $ Creating a Patch for the Fix
documentation/dev-manual/devtool.rst +4 -4
@@ -548,7 +548,7 @@ the two modes: - To work on the source code of a recipe another instance of VSCode is started in the recipe's workspace. Example:: - code build/workspace/sources/my-recipe + $ code build/workspace/sources/my-recipe This instance of VSCode uses plugins that are useful for the development of the application. ``devtool ide-sdk`` generates the necessary
@@ -720,9 +720,9 @@ the two modes: VSCode. First of all we need a folder containing a CMake project. For this example, let's create a CMake project and start VSCode:: - mkdir kit-test - echo "project(foo VERSION 1.0)" > kit-test/CMakeLists.txt - code kit-test + $ mkdir kit-test + $ echo "project(foo VERSION 1.0)" > kit-test/CMakeLists.txt + $ code kit-test If there is a CMake project in the workspace, cross-compilation is supported:
documentation/dev-manual/disk-space.rst +2 -2
@@ -33,7 +33,7 @@ disk space. However, only the most recent ones are likely to be reused. The following command is a quick way to purge all the cache files which haven't been used for a least a specified number of days:: - find build/sstate-cache -type f -mtime +$DAYS -delete + $ find build/sstate-cache -type f -mtime +$DAYS -delete The above command relies on the fact that BitBake touches the sstate cache files as it accesses them, when it has write access to the cache.
@@ -49,7 +49,7 @@ requires a full build environment to be available and doesn't work well covering multiple releases. It won't work either on limited environments such as BSD based NAS:: - sstate-cache-management.py --remove-duplicated --cache-dir=sstate-cache + $ sstate-cache-management.py --remove-duplicated --cache-dir=sstate-cache This command will ask you to confirm the deletions it identifies. Run ``sstate-cache-management.py`` for more details about this script.
documentation/dev-manual/hashequivserver.rst +1 -1
@@ -22,7 +22,7 @@ the :term:`BitBake` repository, which can be found :oe_git:`here </bitbake>`. To start a basic Hash Equivalence server, one could simply run:: - ./bin/bitbake-hashserv + $ ./bin/bitbake-hashserv This will take all of the default options of the script, which are already sufficient to start a local server.
documentation/dev-manual/limiting-resources.rst +1 -1
@@ -104,7 +104,7 @@ details. #. Then, start a heavy-load build, for example:: - bitbake virtual/kernel -c compile -f + $ bitbake virtual/kernel -c compile -f You can stop the build at anytime with Control + C.
documentation/dev-manual/new-recipe.rst +3 -3
@@ -106,19 +106,19 @@ Here are some syntax examples: - Use this syntax to generate a recipe based on source. Once generated, the recipe resides in the existing source code layer:: - recipetool create -o OUTFILE source + $ recipetool create -o OUTFILE source - Use this syntax to generate a recipe using code that you extract from source. The extracted code is placed in its own layer defined by :term:`EXTERNALSRC`:: - recipetool create -o OUTFILE -x EXTERNALSRC source + $ recipetool create -o OUTFILE -x EXTERNALSRC source - Use this syntax to generate a recipe based on source. The options direct ``recipetool`` to generate debugging information. Once generated, the recipe resides in the existing source code layer:: - recipetool create -d -o OUTFILE source + $ recipetool create -d -o OUTFILE source Locating and Using a Similar Recipe -----------------------------------
documentation/dev-manual/packages.rst +1 -1
@@ -176,7 +176,7 @@ work against a common, shared package feed, you have a single PR Service running and it is connected to each building system. For this scenario, you need to start the PR Service using the ``bitbake-prserv`` command:: - bitbake-prserv --host ip --port port --start + $ bitbake-prserv --host ip --port port --start In addition to hand-starting the service, you need to update the
documentation/dev-manual/python-development-shell.rst +0 -1
@@ -25,7 +25,6 @@ functions:: pydevshell> d.delVar("FOO") pydevshell> d.getVar("FOO") pydevshell> bb.build.exec_func("do_unpack", d) - pydevshell> See the ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:functions you can call from within python`" section in the BitBake User Manual for details about available functions.
documentation/dev-manual/qemu.rst +4 -4
@@ -65,7 +65,7 @@ available. Follow these general steps to run QEMU: initializes the toolchain. For example, the following commands run the initialization script from the default ``poky_sdk`` directory:: - . poky_sdk/environment-setup-core2-64-poky-linux + $ . poky_sdk/environment-setup-core2-64-poky-linux #. *Ensure the Artifacts are in Place:* You need to be sure you have a pre-built kernel that will boot in QEMU. You also need the target
@@ -227,15 +227,15 @@ using an NFS server. - To start the NFS share:: - runqemu-export-rootfs start file-system-location + $ runqemu-export-rootfs start file-system-location - To stop the NFS share:: - runqemu-export-rootfs stop file-system-location + $ runqemu-export-rootfs stop file-system-location - To restart the NFS share:: - runqemu-export-rootfs restart file-system-location + $ runqemu-export-rootfs restart file-system-location QEMU CPU Compatibility Under KVM ================================
documentation/dev-manual/start.rst +1 -1
@@ -423,7 +423,7 @@ your Yocto Project build host: replace the PackageFamilyName and your user on the following path to find your VHDX file:: - ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ + C:\WINDOWS\system32> ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState Mode LastWriteTime Length Name -a---- 3/14/2020 9:52 PM 57418973184 ext4.vhdx
documentation/dev-manual/wayland.rst +4 -4
@@ -80,11 +80,11 @@ the CLI, you need to do the following after your image is built: #. Run these commands to export ``XDG_RUNTIME_DIR``:: - mkdir -p /tmp/$USER-weston - chmod 0700 /tmp/$USER-weston - export XDG_RUNTIME_DIR=/tmp/$USER-weston + user@machine:~$ mkdir -p /tmp/$USER-weston + user@machine:~$ chmod 0700 /tmp/$USER-weston + user@machine:~$ export XDG_RUNTIME_DIR=/tmp/$USER-weston #. Launch Weston in the shell:: - weston + user@machine:~$ weston
documentation/kernel-dev/common.rst +0 -3
@@ -75,7 +75,6 @@ section: $ bitbake-layers create-layer ../layers/meta-mylayer NOTE: Starting bitbake server... Add your new layer with 'bitbake-layers add-layer ../layers/meta-mylayer' - $ .. note::
@@ -98,7 +97,6 @@ section: $ cd bitbake-builds/build $ bitbake-layers add-layer ../../meta-mylayer NOTE: Starting bitbake server... - $ #. *Build the Clean Image:* The final step in preparing to work on the kernel is to build an initial image using ``bitbake``::
@@ -194,7 +192,6 @@ section: $ cd bitbake-builds/build $ bitbake-layers add-layer ../../meta-mylayer NOTE: Starting bitbake server ... - $ #. *Create a Local Copy of the Kernel Git Repository:* You can find Git repositories of supported Yocto Project kernels organized under
documentation/migration-guides/migration-2.1.rst +2 -2
@@ -46,8 +46,8 @@ not specify the final expand parameter to calls that do specify the parameter. You can run the following ``sed`` command at the base of a layer to make this change:: - sed -e 's:\(\.getVar([^,()]*\)):\1, False):g' -i `grep -ril getVar *` - sed -e 's:\(\.getVarFlag([^,()]*,[^,()]*\)):\1, False):g' -i `grep -ril getVarFlag *` + $ sed -e 's:\(\.getVar([^,()]*\)):\1, False):g' -i `grep -ril getVar *` + $ sed -e 's:\(\.getVarFlag([^,()]*,[^,()]*\)):\1, False):g' -i `grep -ril getVarFlag *` .. note::
documentation/migration-guides/migration-2.5.rst +2 -2
@@ -138,11 +138,11 @@ BitBake Changes :ref:`ref-classes-archiver` classes). There is a BitBake option to complete this for any arbitrary task. For example:: - bitbake <target> -c fetchall + $ bitbake <target> -c fetchall should now be replaced with:: - bitbake <target> --runall=fetch + $ bitbake <target> --runall=fetch .. _migration-2.5-python-and-python3-changes:
documentation/migration-guides/migration-4.0.rst +1 -1
@@ -256,7 +256,7 @@ Miscellaneous changes - The Python development shell (previously known as ``devpyshell``) feature has been renamed to ``pydevshell``. To start it you should now run:: - bitbake <target> -c pydevshell + $ bitbake <target> -c pydevshell - The ``packagegroups-core-full-cmdline-libs`` packagegroup is no longer produced, as libraries should normally be brought in via dependencies. If you have any references
documentation/migration-guides/migration-5.3.rst +5 -5
@@ -83,16 +83,16 @@ How to make those adjustments without tedious manual editing The following sed command can be used to remove S = "${WORKDIR}/git across a whole layer:: - sed -i "/^S = \"\${WORKDIR}\/git\"/d" `find . -name '*.bb' -o -name '*.inc' -o -name '*.bbclass'` + $ sed -i "/^S = \"\${WORKDIR}\/git\"/d" `find . -name '*.bb' -o -name '*.inc' -o -name '*.bbclass'` Then, the following command can tweak the remaining :term:`S` assignments to refer to :term:`UNPACKDIR` instead of :term:`WORKDIR`:: - sed -i "s/^S = \"\${WORKDIR}\//S = \"\${UNPACKDIR}\//g" `find . -name '*.bb' -o -name '*.inc' -o -name '*.bbclass'` + $ sed -i "s/^S = \"\${WORKDIR}\//S = \"\${UNPACKDIR}\//g" `find . -name '*.bb' -o -name '*.inc' -o -name '*.bbclass'` The first change can introduce a lot of consecutive empty lines, so those can be removed with:: - sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name '*.bb' -o -name '*.inc'` + $ sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name '*.bb' -o -name '*.inc'` BitBake Git fetcher ``tag`` parameter
@@ -312,11 +312,11 @@ The following classes have been removed in this release: #. Use the specific FIT image recipe rather than the base kernel recipe. For example, instead of:: - bitbake linux-yocto + $ bitbake linux-yocto the FIT image is now build by:: - bitbake linux-yocto-fitimage + $ bitbake linux-yocto-fitimage For custom kernel recipes, creating a corresponding custom FIT image recipe is usually a good approach.
documentation/migration-guides/release-notes-4.2.rst +1 -1
@@ -173,7 +173,7 @@ New Features / Enhancements in 4.2 command, which allowed to spot and fix a regression in the ``quilt`` ptest:: - yocto_testresults_query.py regression-report 4.2_M1 4.2_M2 + $ yocto_testresults_query.py regression-report 4.2_M1 4.2_M2 See this `blog post about regression detection <https://bootlin.com/blog/continuous-integration-in-yocto-improving-the-regressions-detection/>`__.
documentation/migration-guides/release-notes-5.3.rst +1 -1
@@ -466,7 +466,7 @@ New Features / Enhancements in |yocto-ver| - The script can now run compressed images with snapshot mode. For example, with :term:`IMAGE_FSTYPES` containing ``ext4.zst``, you can run:: - runqemu snapshot ext4.zst <image-recipe> + $ runqemu snapshot ext4.zst <image-recipe> - Add support for the ``erofs`` filesystem.
documentation/ref-manual/classes.rst +4 -4
@@ -366,7 +366,7 @@ To do so, create a recipe for your program, for example using make it inherit the :ref:`ref-classes-cargo` and :ref:`ref-classes-cargo-update-recipe-crates` and run:: - bitbake -c update_crates recipe + $ bitbake -c update_crates recipe This creates a ``recipe-crates.inc`` file that you can include in your recipe::
@@ -1372,7 +1372,7 @@ The simplest example for building a FIT image is to add:: to the machine :term:`configuration file` and to execute:: - bitbake linux-yocto-fitimage + $ bitbake linux-yocto-fitimage This results in a ``fitImage`` file deployed to the :term:`DEPLOY_DIR_IMAGE` directory and a ``linux-yocto-fitimage`` package which can be installed.
@@ -1386,7 +1386,7 @@ lines to the machine configuration file:: The FIT image, this time including the RT kernel, is built again by calling:: - bitbake linux-yocto-fitimage + $ bitbake linux-yocto-fitimage For other kernels provided by other layers, the same approach would work. However, it is usually more intuitive to add a custom FIT image recipe next to
@@ -3864,7 +3864,7 @@ build. Example usage:: - bitbake -c generate_vex openssl + $ bitbake -c generate_vex openssl .. _ref-classes-waf:
documentation/ref-manual/devtool-reference.rst +0 -2
@@ -461,7 +461,6 @@ Here is an example that resets the workspace directory that contains the $ devtool reset mtr NOTE: Cleaning sysroot for recipe mtr... NOTE: Leaving source tree /home/scottrif/bitbake-builds/build/workspace/sources/mtr as-is; if you no longer need it then please delete it manually - $ .. _devtool-finish-working-on-a-recipe:
@@ -634,7 +633,6 @@ to create and add the ``mtr_0.86.bb`` recipe to the ``workspace`` directory:: $ devtool status mtr:/home/scottrif/bitbake-builds/build/workspace/sources/mtr (/home/scottrif/bitbake-builds/build/workspace/recipes/mtr/mtr_0.86.bb) - $ .. _devtool-search-for-available-target-recipes:
documentation/ref-manual/fragments.rst +8 -8
@@ -72,25 +72,25 @@ command, you can determine which fragments can be enabled for your build. For example, the following command would enable the :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:: - bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn + $ bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn .. note:: Multiple fragments can be enabled at once with the same command:: - bitbake-config-build enable-fragment <fragment1> <fragment2> ... + $ bitbake-config-build enable-fragment <fragment1> <fragment2> ... :term:`Built-in fragments <Built-in Fragment>` are enabled the same way, and their values are defined from the command-line directly. For example, the following command sets the ``qemuarm64`` :term:`MACHINE` through the :ref:`ref-fragments-builtin-core-machine` fragment:: - bitbake-config-build enable-fragment machine/qemuarm64 + $ bitbake-config-build enable-fragment machine/qemuarm64 This fragment can be overridden from the command-line by setting it to another value, for example:: - bitbake-config-build enable-fragment machine/qemux86-64 + $ bitbake-config-build enable-fragment machine/qemux86-64 In the above example, the new value of :term:`MACHINE` is now equal to ``qemux86-64``.
@@ -118,18 +118,18 @@ command. The list of enabled fragments can be obtained with For example, the following command disables the :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:: - bitbake-config-build disable-fragment core/yocto/sstate-mirror-cdn + $ bitbake-config-build disable-fragment core/yocto/sstate-mirror-cdn Likewise, :term:`Built-in Fragments <Built-in Fragment>` are disabled the same way. For example, this would disable the ``machine/qemuarm64`` fragment:: - bitbake-config-build disable-fragment machine/qemuarm64 + $ bitbake-config-build disable-fragment machine/qemuarm64 .. note:: Multiple fragments can be disabled at once with the same command:: - bitbake-config-build disable-fragment <fragment1> <fragment2> + $ bitbake-config-build disable-fragment <fragment1> <fragment2> .. _ref-bitbake-config-build-disable-all-fragments:
@@ -142,7 +142,7 @@ currently enabled fragments. The list of enabled fragments can be obtained with This command is run without arguments:: - bitbake-config-build disable-all-fragments + $ bitbake-config-build disable-all-fragments Core Fragments ==============
documentation/ref-manual/qa-checks.rst +2 -2
@@ -573,14 +573,14 @@ patched file to still compile without errors. Use the ``devtool`` command as explained by the warning. First, unpack the source into devtool workspace:: - devtool modify <recipe> + $ devtool modify <recipe> This will apply all of the patches, and create new commits out of them in the workspace --- with the patch context updated. Then, replace the patches in the recipe layer:: - devtool finish --force-patch-refresh <recipe> <layer_path> + $ devtool finish --force-patch-refresh <recipe> <layer_path> The patch updates then need be reviewed (preferably with a side-by-side diff tool) to ensure they are indeed doing the right thing i.e.:
documentation/ref-manual/variables.rst +3 -3
@@ -967,7 +967,7 @@ system and gives an overview of their function and contents. Use the following format to export the variable to the BitBake environment:: - export BBSERVER=localhost:$port + $ export BBSERVER=localhost:$port By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
@@ -9357,7 +9357,7 @@ system and gives an overview of their function and contents. You can obtain the signature of all the tasks for the recipe ``bc`` using:: - bitbake -S none bc + $ bitbake -S none bc Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
@@ -9514,7 +9514,7 @@ system and gives an overview of their function and contents. This file requires permissions set to ``400`` or ``600`` to prevent other users from reading the file:: - chmod 600 "$HOME/.netrc" + $ chmod 600 "$HOME/.netrc" Another method to configure the username and password is from the URL in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
documentation/test-manual/reproducible-builds.rst +1 -1
@@ -89,7 +89,7 @@ it always depends upon the paths it is built in. To run our automated selftest, as we use in our CI on the Autobuilder, you can run:: - oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds + $ oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds This defaults to including a ``world`` build so, if other layers are added, it would also run the tests for recipes in the additional layers. Different build
documentation/test-manual/runtime-testing.rst +2 -2
@@ -326,7 +326,7 @@ You can start the tests automatically or manually: Next, build your image. If the image successfully builds, the tests run:: - bitbake core-image-sato + $ bitbake core-image-sato - *Manually running tests:* To manually run the tests, first globally inherit the :ref:`ref-classes-testimage` class by editing your
@@ -336,7 +336,7 @@ You can start the tests automatically or manually: Next, use BitBake to run the tests:: - bitbake -c testimage image + $ bitbake -c testimage image All test files reside in ``meta/lib/oeqa/runtime/cases`` in :term:`OpenEmbedded-Core (OE-Core)`. A test name maps
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 4/10 docs: write an elided passage as a comment
In reply to Trevor WoernerSeveral examples stand in for code they leave out with a bare "..." or a column of dots on a line of their own. Neither is valid in the language around it, so the example cannot say what language it is without also saying something false about itself.
Use a comment instead, in whatever language the example is written in, and say in it what was left out. The ellipsis on its own raises a question - what is missing here, and does it matter? - that a few words can answer at no cost to the reader.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- none
changes in v2:
- rebased on master-next; no other change
--- documentation/bsp-manual/bsp.rst | 4 +--- documentation/kernel-dev/common.rst | 14 +++++++------- documentation/migration-guides/migration-3.2.rst | 2 +- documentation/overview-manual/concepts.rst | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-)
documentation/bsp-manual/bsp.rst +1 -3
@@ -561,9 +561,7 @@ statements from the Raspberry Pi ``conf/layer.conf`` file:: # Additional license directories. LICENSE_PATH += "${LAYERDIR}/files/custom-licenses" - . - . - . + # ... and so on for the rest of the file ... This file simply makes :term:`BitBake` aware of the recipes and configuration directories. The file must exist so that the OpenEmbedded build system can
documentation/kernel-dev/common.rst +7 -7
@@ -681,9 +681,9 @@ the ":ref:`kernel-dev/common:getting ready to develop using ``devtool```" Sectio printk("*************************************\n"); if (per_cpu(cpu_loops_per_jiffy, this_cpu)) { - . - . - . + /* + * ... remaining code unchanged ... + */ #. *Build the Updated Kernel Source:* To build the updated kernel source, use ``devtool``::
@@ -817,9 +817,9 @@ Section. printk("*************************************\n"); if (per_cpu(cpu_loops_per_jiffy, this_cpu)) { - . - . - . + /* + * ... remaining code unchanged ... + */ #. *Stage and Commit Your Changes:* Use standard Git commands to stage and commit the changes you just made::
@@ -1598,7 +1598,7 @@ looks much like the one provided with the ``hello-mod`` template:: modules_install: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install - ... + # ... remaining rules ... The important point to note here is the :term:`KERNEL_SRC` variable. The :ref:`ref-classes-module` class sets this variable and the :term:`KERNEL_PATH`
documentation/migration-guides/migration-3.2.rst +1 -1
@@ -100,7 +100,7 @@ This also applies when conditionally adding packages to :term:`PACKAGES` where those packages have dependencies, for example (from the ``alsa-plugins`` recipe):: PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'alsa-plugins-pulseaudio-conf', '', d)}" - ... + # ... elsewhere in the same recipe ... RDEPENDS_${PN}-pulseaudio-conf += "\ ${MLPREFIX}libasound-module-conf-pulse \ ${MLPREFIX}libasound-module-ctl-pulse \
documentation/overview-manual/concepts.rst +1 -1
@@ -2193,7 +2193,7 @@ accomplished using fakeroot. ``virtual/fakeroot-native:do_populate_sysroot``, giving the following:: fakeroot do_mytask () { - ... + # ... steps to perform task here ... } do_mytask[depends] += "virtual/fakeroot-native:do_populate_sysroot"
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 5/10 docs: mark the placeholders in examples
In reply to Trevor WoernerValues the reader is expected to replace are written as though they were literal. "arch-gdb" reads like a command that exists, a Git SRC_URI example reads like a URL and a pair of revisions worth copying, and the git-config examples give an account name and address that are somebody else's. Put them in the angle brackets the manuals already use for the purpose.
Two corrections go with them: the directory placeholder in the GDB example described itself at length rather than naming the thing, and the smtppass example carried a stray "=". Since git config takes a name and then a value, that "=" was the value, and the password behind it an argument git config reads as a pattern.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- the DMARC From: header is left as it was; nothing in it is for the reader to replace
- the git config name is written <firstname> <lastname>
- the SRCREV values say they are commit SHAs
- the SMTP server is a placeholder too, and the prose names smtp.gmail.com as the Google Mail value rather than the block
changes in v2:
- rebased on master-next; no other change
--- .../contributor-guide/submit-changes.rst | 15 ++++++++------- documentation/dev-manual/debugging.rst | 8 ++++---- documentation/migration-guides/migration-5.2.rst | 16 ++++++++-------- documentation/ref-manual/devtool-reference.rst | 2 +- documentation/ref-manual/variables.rst | 2 +- 5 files changed, 22 insertions(+), 21 deletions(-)
documentation/contributor-guide/submit-changes.rst +8 -7
@@ -62,8 +62,8 @@ on Debian and Ubuntu:: Then, you need to set a name and e-mail address that Git will use to identify your commits:: - $ git config --global user.name "Ada Lovelace" - $ git config --global user.email "[email protected]" + $ git config --global user.name "<firstname> <lastname>" + $ git config --global user.email "<email>" By default, Git adds a signature line at the end of patches containing the Git version. We suggest to remove it as it doesn't add useful information.
@@ -394,13 +394,14 @@ Mail Transport Agent (MTA) such as ``msmtp``, ``sendmail``, or through a direct SMTP configuration in your Git ``~/.gitconfig`` file. Here are the settings for letting ``git send-email`` send e-mail through your -regular STMP server, using a Google Mail account as an example:: +regular STMP server, such as ``smtp.gmail.com`` for a Google Mail +account:: - $ git config --global sendemail.smtpserver smtp.gmail.com + $ git config --global sendemail.smtpserver <smtp server> $ git config --global sendemail.smtpserverport 587 $ git config --global sendemail.smtpencryption tls - $ git config --global sendemail.smtpuser [email protected] - $ git config --global sendemail.smtppass = XXXXXXXX + $ git config --global sendemail.smtpuser <email> + $ git config --global sendemail.smtppass <password> These settings will appear in the ``.gitconfig`` file in your home directory.
@@ -517,7 +518,7 @@ author name. The following will ensure that your e-mails have an additional maintainers accepting your patches don't have to fix commit author information manually:: - $ git config --global sendemail.from "[email protected]" + $ git config --global sendemail.from "<email>" The ``sendemail.from`` should match your ``user.email`` setting, which appears in the ``Signed-off-by`` line of your commits.
documentation/dev-manual/debugging.rst +4 -4
@@ -810,7 +810,7 @@ be visible. In this case, there is a missing dependency for the ``neard`` Makefile target. Here is some abbreviated, sample output with the missing dependency clearly visible at the end:: - i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/scott-lenovo/...... + i586-poky-linux-gcc -m32 -march=i586 --sysroot=<path/to/sysroot> . . .
@@ -1114,11 +1114,11 @@ debugger. After running gdbserver on the target, you need to run Gdb on the host and configure it and connect to the target. Use these commands:: - $ cd directory-holding-the-debugfs-directory - $ arch-gdb + $ cd <debugfs-directory> + $ <arch>-gdb (gdb) set sysroot debugfs (gdb) set substitute-path /usr/src/debug debugfs/usr/src/debug - (gdb) target remote IP-of-target:1234 + (gdb) target remote <IP-of-target>:1234 At this point, everything should automatically load (i.e. matching binaries,
documentation/migration-guides/migration-5.2.rst +8 -8
@@ -193,9 +193,9 @@ The support for having multiple Git revisions per URL in :term:`SRC_URI` was removed from BitBake, which means the following syntax is not supported anymore:: - SRC_URI = "git://some.host/somepath;bareclone=1;branch=branchX,branchY;name=nameX,nameY" - SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" - SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" + SRC_URI = "git://<some.host>/<somepath>;bareclone=1;branch=<branchX>,<branchY>;name=<nameX>,<nameY>" + SRCREV_<nameX> = "<revision SHA for nameX>" + SRCREV_<nameY> = "<revision SHA for nameY>" This was rarely used in the core repositories because it would only ever make sense for bare clones (the ``bareclone=1`` :term:`SRC_URI` option) where recipes
@@ -205,10 +205,10 @@ places. If one of your recipes is using this mechanism, you can split the code source fetching into two separate entries:: - SRC_URI = "git://some.host/somepath;bareclone=1;branch=branchX;name=nameX \ - git://some.host/somepath;bareclone=1;branch=branchY;name=nameY" - SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" - SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" + SRC_URI = "git://<some.host>/<somepath>;bareclone=1;branch=<branchX>;name=<nameX> \ + git://<some.host>/<somepath>;bareclone=1;branch=<branchY>;name=<nameY>" + SRCREV_<nameX> = "<revision SHA for nameX>" + SRCREV_<nameY> = "<revision SHA for nameY>" Git fetcher: Branch parameter now required in :term:`SRC_URI` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -216,7 +216,7 @@ Git fetcher: Branch parameter now required in :term:`SRC_URI` The ``branch`` parameter is now required when specifying a Git repository in :term:`SRC_URI`, for example:: - SRC_URI = "git://some.host/somepath;branch=branchX" + SRC_URI = "git://<some.host>/<somepath>;branch=<branchX>" A missing ``branch`` parameter used to produce a warning, and will now produce an error.
documentation/ref-manual/devtool-reference.rst +1 -1
@@ -474,7 +474,7 @@ This is roughly equivalent to the ``devtool update-recipe`` command followed by the ``devtool reset`` command. The changes must have been committed to the git repository created by ``devtool``. Here is an example:: - $ devtool finish recipe /path/to/custom/layer + $ devtool finish <recipe> <path/to/custom/layer> .. _devtool-building-your-recipe:
documentation/ref-manual/variables.rst +1 -1
@@ -162,7 +162,7 @@ system and gives an overview of their function and contents. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default. ARCHIVER_MODE[src] = "configured" # Uses configured source files. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch. - ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff. + ARCHIVER_MODE[diff-exclude] ?= "<file> <file> ..." # Lists files and directories to exclude from diff. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 6/10 docs: remove real accounts from the examples
In reply to Trevor WoernerExamples across the manuals carry the account names of the people who wrote them, in home directory paths and in a shell prompt that also names a machine. Use "/home/user" and a bare "$", which is what the rest of the manuals already do.
Two are left as they are: the autobuilder's service account, whose paths are about autobuilder output rather than somebody's machine, and a prompt whose command is a relative path, where the working directory the prompt carries is what says where the command runs.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- the setup-layers prompt keeps its path, which is what says where the relative command runs
changes in v2:
- rebased on master-next; no other change
--- documentation/dev-manual/debugging.rst | 4 +- documentation/dev-manual/layers.rst | 10 ++--- documentation/dev-manual/qemu.rst | 2 +- .../dev-manual/upgrading-recipes.rst | 18 ++++---- documentation/dev-manual/wic.rst | 44 +++++++++---------- documentation/kernel-dev/common.rst | 16 +++---- documentation/profile-manual/usage.rst | 2 +- .../ref-manual/devtool-reference.rst | 6 +-- documentation/ref-manual/faq.rst | 6 +-- documentation/ref-manual/variables.rst | 8 ++-- documentation/sdk-manual/extensible.rst | 6 +-- 11 files changed, 61 insertions(+), 61 deletions(-)
documentation/dev-manual/debugging.rst +2 -2
@@ -144,7 +144,7 @@ helpful during debugging. Variables that are exported to the environment are preceded by ``export`` in the output of ``bitbake-getvar``. See the following example:: - export CC="i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/ulf/poky/build/tmp/sysroots/qemux86" + export CC="i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/user/poky/build/tmp/sysroots/qemux86" Shell functions and tasks can also be inspected with the same mechanism::
@@ -522,7 +522,7 @@ task dependency mechanisms. .. code-block:: none - WARNING: /home/ulf/openembedded-core/meta/recipes-sato/matchbox-desktop/matchbox-desktop_2.1.bb.do_compile is tainted from a forced run + WARNING: /home/user/openembedded-core/meta/recipes-sato/matchbox-desktop/matchbox-desktop_2.1.bb.do_compile is tainted from a forced run The purpose of the warning is to let you know that the work directory
documentation/dev-manual/layers.rst +5 -5
@@ -916,11 +916,11 @@ shows the layers that are in your :ref:`structure-build-conf-bblayers.conf` file NOTE: Starting bitbake server... layer path priority ============================================================================================== - meta /home/scottrif/bitbake-builds/layers/openembedded-core/meta 5 - meta-poky /home/scottrif/bitbake-builds/layers/meta-yocto/meta-poky 5 - meta-yocto-bsp /home/scottrif/bitbake-builds/layers/meta-yocto/meta-yocto-bsp 5 - workspace /home/scottrif/bitbake-builds/build/workspace 99 - meta-scottrif /home/scottrif/bitbake-builds/build/meta-scottrif 6 + meta /home/user/bitbake-builds/layers/openembedded-core/meta 5 + meta-poky /home/user/bitbake-builds/layers/meta-yocto/meta-poky 5 + meta-yocto-bsp /home/user/bitbake-builds/layers/meta-yocto/meta-yocto-bsp 5 + workspace /home/user/bitbake-builds/build/workspace 99 + meta-scottrif /home/user/bitbake-builds/build/meta-scottrif 6 Adding the layer to this file enables the build system to locate the layer during the build.
documentation/dev-manual/qemu.rst +1 -1
@@ -151,7 +151,7 @@ available. Follow these general steps to run QEMU: determines the QEMU architecture (`MACHINE`) to be "qemux86-64" and the root filesystem type to be "vmdk":: - $ runqemu /home/scott-lenovo/vm/core-image-minimal-qemux86-64.wic.vmdk + $ runqemu /home/user/vm/core-image-minimal-qemux86-64.wic.vmdk Switching Between Consoles ==========================
documentation/dev-manual/upgrading-recipes.rst +9 -9
@@ -244,12 +244,12 @@ script. For example, suppose you use the ``nano.bb`` recipe from the ``meta-oe`` layer in the ``meta-openembedded`` repository. For this example, assume that the layer has been cloned into following area:: - /home/scottrif/bitbake-builds/layers/meta-openembedded + /home/user/bitbake-builds/layers/meta-openembedded The following command from your :term:`Build Directory` adds the layer to your build configuration (i.e. ``${BUILDDIR}/conf/bblayers.conf``):: - $ bitbake-layers add-layer /home/scottrif/bitbake-builds/layers/meta-openembedded/meta-oe + $ bitbake-layers add-layer /home/user/bitbake-builds/layers/meta-openembedded/meta-oe NOTE: Starting bitbake server... Parsing recipes: 100% |##########################################| Time: 0:00:55 Parsing of 1431 .bb files complete (0 cached, 1431 parsed). 2040 targets, 56 skipped, 0 masked, 0 errors.
@@ -265,7 +265,7 @@ directory automatically upgrades the recipe for you:: $ devtool upgrade nano -V 2.9.3 NOTE: Starting bitbake server... - NOTE: Creating workspace layer in /home/scottrif/bitbake-builds/build/workspace + NOTE: Creating workspace layer in /home/user/bitbake-builds/build/workspace Parsing recipes: 100% |##########################################| Time: 0:00:46 Parsing of 1431 .bb files complete (0 cached, 1431 parsed). 2040 targets, 56 skipped, 0 masked, 0 errors. NOTE: Extracting current version source...
@@ -277,8 +277,8 @@ directory automatically upgrades the recipe for you:: NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 74 tasks of which 72 didn't need to be rerun and all succeeded. Adding changed files: 100% |#####################################| Time: 0:00:00 - NOTE: Upgraded source extracted to /home/scottrif/bitbake-builds/build/workspace/sources/nano - NOTE: New recipe is /home/scottrif/bitbake-builds/build/workspace/recipes/nano/nano_2.9.3.bb + NOTE: Upgraded source extracted to /home/user/bitbake-builds/build/workspace/sources/nano + NOTE: New recipe is /home/user/bitbake-builds/build/workspace/recipes/nano/nano_2.9.3.bb .. note::
@@ -300,7 +300,7 @@ newly upgraded recipe:: . NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks - NOTE: nano: compiling from external source tree /home/scottrif/bitbake-builds/build/workspace/sources/nano + NOTE: nano: compiling from external source tree /home/user/bitbake-builds/build/workspace/sources/nano NOTE: Tasks Summary: Attempted 520 tasks of which 304 didn't need to be rerun and all succeeded. Within the ``devtool upgrade`` workflow, you can
@@ -321,9 +321,9 @@ directory:: Parsing of 1432 .bb files complete (1431 cached, 1 parsed). 2041 targets, 56 skipped, 0 masked, 0 errors. NOTE: Adding new patch 0001-nano.bb-Stuff-I-changed-when-upgrading-nano.bb.patch NOTE: Updating recipe nano_2.9.3.bb - NOTE: Removing file /home/scottrif/bitbake-builds/layers/meta-openembedded/meta-oe/recipes-support/nano/nano_2.7.4.bb - NOTE: Moving recipe file to /home/scottrif/bitbake-builds/layers/meta-openembedded/meta-oe/recipes-support/nano - NOTE: Leaving source tree /home/scottrif/bitbake-builds/build/workspace/sources/nano as-is; if you no longer need it then please delete it manually + NOTE: Removing file /home/user/bitbake-builds/layers/meta-openembedded/meta-oe/recipes-support/nano/nano_2.7.4.bb + NOTE: Moving recipe file to /home/user/bitbake-builds/layers/meta-openembedded/meta-oe/recipes-support/nano + NOTE: Leaving source tree /home/user/bitbake-builds/build/workspace/sources/nano as-is; if you no longer need it then please delete it manually Using the ``devtool finish`` command cleans up the workspace and creates a patch
documentation/dev-manual/wic.rst +22 -22
78 lines not on this page · raw message
documentation/kernel-dev/common.rst +8 -8
@@ -1250,32 +1250,32 @@ Here is sample output from the :ref:`ref-tasks-kernel_configcheck` task: ---------- CONFIG_X86_TSC ----------------- Config: CONFIG_X86_TSC - From: /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/bsp/common-pc/common-pc-cpu.cfg + From: /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/bsp/common-pc/common-pc-cpu.cfg Requested value: CONFIG_X86_TSC=y Actual value: ---------- CONFIG_X86_BIGSMP ----------------- Config: CONFIG_X86_BIGSMP - From: /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/cfg/smp.cfg - /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/defconfig + From: /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/cfg/smp.cfg + /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/defconfig Requested value: # CONFIG_X86_BIGSMP is not set Actual value: ---------- CONFIG_NR_CPUS ----------------- Config: CONFIG_NR_CPUS - From: /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/cfg/smp.cfg - /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/bsp/common-pc/common-pc.cfg - /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/defconfig + From: /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/cfg/smp.cfg + /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/bsp/common-pc/common-pc.cfg + /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/defconfig Requested value: CONFIG_NR_CPUS=8 Actual value: CONFIG_NR_CPUS=1 ---------- CONFIG_SCHED_SMT ----------------- Config: CONFIG_SCHED_SMT - From: /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/cfg/smp.cfg - /home/scottrif/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/defconfig + From: /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/cfg/smp.cfg + /home/user/bitbake-builds/build/tmp/work-shared/qemux86/kernel-source/.kernel-meta/configs/standard/defconfig Requested value: CONFIG_SCHED_SMT=y Actual value:
documentation/profile-manual/usage.rst +1 -1
@@ -322,7 +322,7 @@ debug packages once built can be found in ``build/tmp/deploy/rpm/*`` on the host system. Find the ``busybox-dbg-...rpm`` file and copy it to the target. For example:: - [trz@empanada core2]$ scp /home/trz/yocto/crownbay-tracing-dbg/build/tmp/deploy/rpm/core2_32/busybox-dbg-1.20.2-r2.core2_32.rpm [email protected]: + $ scp /home/user/yocto/crownbay-tracing-dbg/build/tmp/deploy/rpm/core2_32/busybox-dbg-1.20.2-r2.core2_32.rpm [email protected]: busybox-dbg-1.20.2-r2.core2_32.rpm 100% 1826KB 1.8MB/s 00:01 Now install the debug RPM on the target::
documentation/ref-manual/devtool-reference.rst +3 -3
@@ -460,7 +460,7 @@ Here is an example that resets the workspace directory that contains the $ devtool reset mtr NOTE: Cleaning sysroot for recipe mtr... - NOTE: Leaving source tree /home/scottrif/bitbake-builds/build/workspace/sources/mtr as-is; if you no longer need it then please delete it manually + NOTE: Leaving source tree /home/user/bitbake-builds/build/workspace/sources/mtr as-is; if you no longer need it then please delete it manually .. _devtool-finish-working-on-a-recipe:
@@ -612,7 +612,7 @@ You can create a workspace layer anywhere by supplying a pathname with the command. The following command creates a new workspace layer named "new-workspace":: - $ devtool create-workspace /home/scottrif/new-workspace + $ devtool create-workspace /home/user/new-workspace .. _devtool-get-the-status-of-the-recipes-in-your-workspace:
@@ -632,7 +632,7 @@ Here is sample output after using to create and add the ``mtr_0.86.bb`` recipe to the ``workspace`` directory:: $ devtool status - mtr:/home/scottrif/bitbake-builds/build/workspace/sources/mtr (/home/scottrif/bitbake-builds/build/workspace/recipes/mtr/mtr_0.86.bb) + mtr:/home/user/bitbake-builds/build/workspace/sources/mtr (/home/user/bitbake-builds/build/workspace/recipes/mtr/mtr_0.86.bb) .. _devtool-search-for-available-target-recipes:
documentation/ref-manual/faq.rst +3 -3
@@ -461,11 +461,11 @@ and related variables. To better understand this, consider the following two paths (artificially broken across lines for readability) where the first is relatively normal and the second is not:: - /home/maxtothemax/poky-bootchart2/build/tmp/work/i586-poky-linux/zlib/ + /home/user/poky-bootchart2/build/tmp/work/i586-poky-linux/zlib/ 1.2.8-r0/sysroot-destdir/usr/bin - /home/maxtothemax/poky-bootchart2/build/tmp/work/x86_64-linux/ - zlib-native/1.2.8-r0/sysroot-destdir/home/maxtothemax/poky-bootchart2/ + /home/user/poky-bootchart2/build/tmp/work/x86_64-linux/ + zlib-native/1.2.8-r0/sysroot-destdir/home/user/poky-bootchart2/ build/tmp/sysroots/x86_64-linux/usr/bin Even if the paths look unusual, they both are correct --- the first for
documentation/ref-manual/variables.rst +4 -4
@@ -888,10 +888,10 @@ system and gives an overview of their function and contents. Here is an example:: BBLAYERS = " \ - /home/scottrif/bitbake-builds/layers/meta \ - /home/scottrif/bitbake-builds/layers/meta-poky \ - /home/scottrif/bitbake-builds/layers/meta-yocto-bsp \ - /home/scottrif/bitbake-builds/layers/meta-mykernel \ + /home/user/bitbake-builds/layers/meta \ + /home/user/bitbake-builds/layers/meta-poky \ + /home/user/bitbake-builds/layers/meta-yocto-bsp \ + /home/user/bitbake-builds/layers/meta-mykernel \ " This example enables four layers, one of which is a custom,
documentation/sdk-manual/extensible.rst +3 -3
@@ -149,7 +149,7 @@ architecture. The example assumes the SDK installer is located in Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.5 ========================================================================== Enter target directory for SDK (default: poky_sdk): - You are about to install the SDK to "/home/scottrif/poky_sdk". Proceed [Y/n]? Y + You are about to install the SDK to "/home/user/poky_sdk". Proceed [Y/n]? Y Extracting SDK..............done Setting it up... Extracting buildtools...
@@ -162,7 +162,7 @@ architecture. The example assumes the SDK installer is located in 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. - $ . /home/scottrif/poky_sdk/environment-setup-core2-64-poky-linux + $ . /home/user/poky_sdk/environment-setup-core2-64-poky-linux .. note::
@@ -197,7 +197,7 @@ script is for an IA-based target machine using i586 tuning: .. code-block:: console - $ cd /home/scottrif/poky_sdk + $ cd /home/user/poky_sdk $ source environment-setup-core2-64-poky-linux SDK environment now set up; additionally you may now run devtool to perform development tasks. Run devtool --help for further details.
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 7/10 kernel-dev: give each example block one thing to hold
In reply to Trevor WoernerSeveral kernel metadata examples put a filename label inside the block, and some go on to hold more than one file, in more than one language, under a single "::". A block shaped that way is not any one language, so it can only ever be shown unhighlighted.
Split them into a block each, dedent what is left, and move the filename to the code-block caption, which keeps it attached to the block it names and renders it inside the block's frame. The theme centres a caption in italics, which reads as prose, so it is restyled to look like the filename it is.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- none
changes in v2:
- the caption takes the theme's whole font stack; the shortened copy dropped Liberation Mono, which is why it rendered in a different face
--- documentation/kernel-dev/advanced.rst | 139 ++++++++++-------- .../sphinx-static/theme_overrides.css | 28 ++++ 2 files changed, 104 insertions(+), 63 deletions(-)
documentation/kernel-dev/advanced.rst +76 -63
@@ -216,24 +216,28 @@ used with the ``linux-yocto-4.12`` kernel as defined outside of the recipe space (i.e. ``yocto-kernel-cache``). This Metadata consists of two files: ``smp.scc`` and ``smp.cfg``. You can find these files in the ``cfg`` directory of the ``yocto-4.12`` branch in the -``yocto-kernel-cache`` Git repository:: +``yocto-kernel-cache`` Git repository. + +.. code-block:: + :caption: cfg/smp.scc + + define KFEATURE_DESCRIPTION "Enable SMP for 32 bit builds" + define KFEATURE_COMPATIBILITY all - cfg/smp.scc: - define KFEATURE_DESCRIPTION "Enable SMP for 32 bit builds" - define KFEATURE_COMPATIBILITY all + kconf hardware smp.cfg - kconf hardware smp.cfg +.. code-block:: + :caption: cfg/smp.cfg - cfg/smp.cfg: - CONFIG_SMP=y - CONFIG_SCHED_SMT=y - # Increase default NR_CPUS from 8 to 64 so that platform with - # more than 8 processors can be all activated at boot time - CONFIG_NR_CPUS=64 - # The following is needed when setting NR_CPUS to something - # greater than 8 on x86 architectures, it should be automatically - # disregarded by Kconfig when using a different arch - CONFIG_X86_BIGSMP=y + CONFIG_SMP=y + CONFIG_SCHED_SMT=y + # Increase default NR_CPUS from 8 to 64 so that platform with + # more than 8 processors can be all activated at boot time + CONFIG_NR_CPUS=64 + # The following is needed when setting NR_CPUS to something + # greater than 8 on x86 architectures, it should be automatically + # disregarded by Kconfig when using a different arch + CONFIG_X86_BIGSMP=y You can find general information on configuration fragment files in the ":ref:`kernel-dev/common:creating configuration fragments`" section.
@@ -278,36 +282,39 @@ kernel as defined outside of the recipe space (i.e. in the ``patches/build`` directory of the ``yocto-4.12`` branch in the ``yocto-kernel-cache`` Git repository. -The following listings show the ``build.scc`` file and part of the -``modpost-mask-trivial-warnings.patch`` file:: +.. code-block:: + :caption: patches/build/build.scc - patches/build/build.scc: - patch arm-serialize-build-targets.patch - patch powerpc-serialize-image-targets.patch - patch kbuild-exclude-meta-directory-from-distclean-processi.patch + patch arm-serialize-build-targets.patch + patch powerpc-serialize-image-targets.patch + patch kbuild-exclude-meta-directory-from-distclean-processi.patch - # applied by kgit - # patch kbuild-add-meta-files-to-the-ignore-li.patch + # applied by kgit + # patch kbuild-add-meta-files-to-the-ignore-li.patch - patch modpost-mask-trivial-warnings.patch - patch menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch + patch modpost-mask-trivial-warnings.patch + patch menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch - patches/build/modpost-mask-trivial-warnings.patch: - From bd48931bc142bdd104668f3a062a1f22600aae61 Mon Sep 17 00:00:00 2001 - From: Paul Gortmaker <[email protected]> - Date: Sun, 25 Jan 2009 17:58:09 -0500 - Subject: [PATCH] modpost: mask trivial warnings +and part of the patch it names: - Newer HOSTCC will complain about various stdio fcns because - . - . - . - char *dump_write = NULL, *files_source = NULL; - int opt; - -- - 2.10.1 +.. code-block:: + :caption: patches/build/modpost-mask-trivial-warnings.patch - generated by cgit v0.10.2 at 2017-09-28 15:23:23 (GMT) + From bd48931bc142bdd104668f3a062a1f22600aae61 Mon Sep 17 00:00:00 2001 + From: Paul Gortmaker <[email protected]> + Date: Sun, 25 Jan 2009 17:58:09 -0500 + Subject: [PATCH] modpost: mask trivial warnings + + Newer HOSTCC will complain about various stdio fcns because + . + . + . + char *dump_write = NULL, *files_source = NULL; + int opt; + -- + 2.10.1 + + generated by cgit v0.10.2 at 2017-09-28 15:23:23 (GMT) The description file can include multiple patch statements where each statement handles a single
@@ -325,16 +332,18 @@ Features Features are complex kernel Metadata types that consist of configuration fragments, patches, and possibly other feature description files. As an -example, consider the following generic listing:: +example, consider the following generic listing: + +.. code-block:: + :caption: features/myfeature.scc - features/myfeature.scc - define KFEATURE_DESCRIPTION "Enable myfeature" + define KFEATURE_DESCRIPTION "Enable myfeature" - patch 0001-myfeature-core.patch - patch 0002-myfeature-interface.patch + patch 0001-myfeature-core.patch + patch 0002-myfeature-interface.patch - include cfg/myfeature_dependency.scc - kconf non-hardware myfeature.cfg + include cfg/myfeature_dependency.scc + kconf non-hardware myfeature.cfg This example shows how the ``patch`` and ``kconf`` commands are used as well as how an additional feature description file is included with the
@@ -873,17 +882,19 @@ new branch as the :term:`KBRANCH` to use for the board as follows:: KBRANCH = "mynewbranch" Another method is to use the ``branch`` command in the BSP -description:: +description: - mybsp.scc: - define KMACHINE mybsp - define KTYPE standard - define KARCH i386 - include standard.scc +.. code-block:: + :caption: mybsp.scc - branch mynewbranch + define KMACHINE mybsp + define KTYPE standard + define KARCH i386 + include standard.scc + + branch mynewbranch - include mybsp-hw.scc + include mybsp-hw.scc If you find yourself with numerous branches, you might consider using a hierarchical branching system similar to what the Yocto Linux Kernel Git
@@ -925,18 +936,20 @@ that have to be regularly updated. The Yocto Project Linux kernel tools provide for this with the ``git merge`` command. To merge a feature branch into a BSP, insert the ``git merge`` command -after any ``branch`` commands:: +after any ``branch`` commands: - mybsp.scc: - define KMACHINE mybsp - define KTYPE standard - define KARCH i386 - include standard.scc +.. code-block:: + :caption: mybsp.scc + + define KMACHINE mybsp + define KTYPE standard + define KARCH i386 + include standard.scc - branch mynewbranch - git merge myfeature + branch mynewbranch + git merge myfeature - include mybsp-hw.scc + include mybsp-hw.scc SCC Description File Reference ==============================
documentation/sphinx-static/theme_overrides.css +28 -0
@@ -107,6 +107,34 @@ section#welcome-to-the-yocto-project-documentation p.caption { display: none; } +/* A code-block caption names the file the block came from, so it + should read as a filename rather than as prose, and sit on the block + it titles rather than floating above it. */ +.rst-content .literal-block-wrapper .code-block-caption { + font-style: normal; + font-family: SFMono-Regular, Menlo, Monaco, Consolas, + Liberation Mono, Courier New, Courier, monospace; + font-size: 80%; + text-align: left; + color: #e6edf3; + background: #2b3137; + padding: .45em .9em; + margin: 0; + line-height: 1.5; + border-radius: 4px 4px 0 0; +} + +.rst-content .literal-block-wrapper .code-block-caption .headerlink { + color: #93a1ad; +} + +/* No gap and no doubled border between a caption and its block. */ +.rst-content .literal-block-wrapper .code-block-caption + div[class^=highlight] { + margin-top: 0; + border-top: none; + border-radius: 0 0 4px 4px; +} + @media screen { .wy-nav-content { max-width: 1000px;
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 8/10 ref-manual: put the ARCHIVER_MODE comments on their own lines
In reply to Trevor WoernerBitBake has no inline comments. A "#" after a value is not stripped and does not end the statement: the parser simply fails to match the line, so each of these varflag examples would be rejected outright if copied into a configuration file.
Move each explanation to the line above the setting it describes, which parses and reads the same.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- a blank line separates each comment from the setting above it
changes in v2:
- the srpm varflag is no longer in this block, having been removed upstream in d5216e3fd4be
--- documentation/ref-manual/variables.rst | 27 +++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-)
documentation/ref-manual/variables.rst +20 -7
@@ -158,13 +158,26 @@ system and gives an overview of their function and contents. original source, configured source, and so forth by employing the following variable flags (varflags):: - ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files. - ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default. - ARCHIVER_MODE[src] = "configured" # Uses configured source files. - ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch. - ARCHIVER_MODE[diff-exclude] ?= "<file> <file> ..." # Lists files and directories to exclude from diff. - ARCHIVER_MODE[dumpdata] = "1" # Uses environment data. - ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files. + # Uses original (unpacked) source files. + ARCHIVER_MODE[src] = "original" + + # Uses patched source files. This is the default. + ARCHIVER_MODE[src] = "patched" + + # Uses configured source files. + ARCHIVER_MODE[src] = "configured" + + # Uses patches between do_unpack and do_patch. + ARCHIVER_MODE[diff] = "1" + + # Lists files and directories to exclude from diff. + ARCHIVER_MODE[diff-exclude] ?= "<file> <file> ..." + + # Uses environment data. + ARCHIVER_MODE[dumpdata] = "1" + + # Uses recipe and include files. + ARCHIVER_MODE[recipe] = "1" For information on how the variable works, see the ``meta/classes/archiver.bbclass`` file in :term:`OpenEmbedded-Core
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 9/10 ref-manual: drop "partition" as a wic kickstart command
In reply to Trevor WoernerThe kickstart reference documents "partition" as a synonym for "part". wic does not accept it: its parser registers only part, bootloader, and include, so a .wks line beginning "partition" fails with an invalid-choice error.
The synonym was real while wic used a bundled pykickstart, whose command table mapped both spellings to one handler. Replacing that with a parser carrying only the options wic uses kept "part" alone, and the manual was not updated to match.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- back in the series: applied on 2026-09-22, then unapplied by the master-next rewind
--- documentation/ref-manual/kickstart.rst | 9 ++++----- documentation/ref-manual/variables.rst | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-)
documentation/ref-manual/kickstart.rst +4 -5
@@ -16,14 +16,13 @@ modifications to reflect Wic capabilities. You can see the original documentation for those commands at the following link: https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html -Command: part or partition -========================== +Command: part +============= -Either of these commands creates a partition on the system and uses the +This command creates a partition on the system and uses the following syntax:: part [mntpoint] - partition [mntpoint] If you do not provide mntpoint, Wic creates a partition but does not mount it.
@@ -54,7 +53,7 @@ Here is an example that uses "/" as the mountpoint. The command uses part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024 Here is a list that describes other supported options you can use with -the ``part`` and ``partition`` commands: +the ``part`` command: - ``--size``: The minimum partition size. Specify as an integer value optionally followed by one of the units "k" / "K" for kibibyte,
documentation/ref-manual/variables.rst +1 -1
@@ -4587,7 +4587,7 @@ system and gives an overview of their function and contents. When using Wic tool, beware that a second overhead factor is also applied. This overhead value is defined by the ``--overhead-factor`` option, which defaults to "1.3" when omitted. See the - :ref:`ref-manual/kickstart:command: part or partition` chapter in + :ref:`ref-manual/kickstart:command: part` chapter in :doc:`/ref-manual/kickstart` for details. :term:`IMAGE_PKGTYPE`
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v3 10/10 dev-manual: indent a list continuation so the code block ends
In reply to Trevor WoernerThe second line of the enumerated item is not indented, so the item ends after its first line and the "::" opens a literal block at the top level. Everything more indented then belongs to it: the assignment, the paragraph explaining what packageformat may be, and the note beneath them. They render as preformatted text inside the code box, and the note loses its admonition styling.
AI-Generated: codex/claude-opus 5 (xhigh)
---
changes in v3:
- back in the series: applied on 2026-09-22, then unapplied by the master-next rewind
--- documentation/dev-manual/packages.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/dev-manual/packages.rst +1 -1
@@ -561,7 +561,7 @@ to use. In your configuration, you use the variable to specify the format: #. Select the desired package format as follows from your -:ref:`structure-build-conf-local.conf` or distro :term:`configuration file`:: + :ref:`structure-build-conf-local.conf` or distro :term:`configuration file`:: PACKAGE_CLASSES ?= "package_packageformat"
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
Antonin Godard
AppliedApplied to master, thanks!
[01/10] docs: give the root prompts a preamble
https://git.yoctoproject.org/yocto-docs/commit/?id=64c57e5c12c2 [02/10] docs: copy only the command from a console block https://git.yoctoproject.org/yocto-docs/commit/?id=6fa38c6d8b31 [03/10] docs: show a prompt on commands the reader is meant to type https://git.yoctoproject.org/yocto-docs/commit/?id=be47648a8010 [04/10] docs: write an elided passage as a comment https://git.yoctoproject.org/yocto-docs/commit/?id=f8e676c038a5 [05/10] docs: mark the placeholders in examples https://git.yoctoproject.org/yocto-docs/commit/?id=18af4ce3b2c3 [06/10] docs: remove real accounts from the examples https://git.yoctoproject.org/yocto-docs/commit/?id=506b28871d73 [07/10] kernel-dev: give each example block one thing to hold https://git.yoctoproject.org/yocto-docs/commit/?id=0625631abce9 [08/10] ref-manual: put the ARCHIVER_MODE comments on their own lines https://git.yoctoproject.org/yocto-docs/commit/?id=04a6651f50f4 [09/10] ref-manual: drop "partition" as a wic kickstart command https://git.yoctoproject.org/yocto-docs/commit/?id=3a52e7633466 [10/10] dev-manual: indent a list continuation so the code block ends https://git.yoctoproject.org/yocto-docs/commit/?id=dc28a61ac708