sdk-manual: fix code-blocks, migrate one PNG to SVG, remove unused PNG
cover sdk-manual: fix code-blocks, migrate one PNG to SVG, remove unused PNG
This migrates literal and code blocks to an explicit lexer in sdk-manual.
It also migrate one PNG to SVG (one that was "easy enough" for me to quickly do), as well as deleting an unused PNG.
In addition, this removes two PNGs in favor of a simple code-block when listing the directory layout as it doesn't bring anything valuable and makes accessibility worse.
Finally, it also fixes some improper indent that resulted in explanations unintentionally being part of a code-block.
---
Quentin Schulz (9):
sdk-manual: fix incorrect highlight language for text code-blocks
sdk-manual: fix incorrect highlight language for console code-blocks
sdk-manual: fix improper indent of general form of tarball installer script
sdk-manual: working-projects: properly highlight code code-blocks
sdk-manual: appending-customizing: use none lexer for BitBake code blocks
sdk-manual: appendix-obtain: replace directory structure PNG with a code-block
sdk-manual: appendix-obtain: replace eSDK directory structure PNG with a code-block
sdk-manual: replace sdk-environment PNG with SVG
sdk-manual: delete sdk-title PNG
documentation/sdk-manual/appendix-customizing.rst | 36 +- documentation/sdk-manual/appendix-obtain.rst | 104 ++++- documentation/sdk-manual/extensible.rst | 59 ++- .../sdk-manual/figures/sdk-environment.png | Bin 42098 -> 0 bytes .../sdk-installed-extensible-sdk-directory.png | Bin 66753 -> 0 bytes .../sdk-installed-standard-sdk-directory.png | Bin 39099 -> 0 bytes documentation/sdk-manual/figures/sdk-title.png | Bin 31039 -> 0 bytes documentation/sdk-manual/intro.rst | 2 +- documentation/sdk-manual/svg/sdk-environment.svg | 463 +++++++++++++++++++++ documentation/sdk-manual/using.rst | 33 +- documentation/sdk-manual/working-projects.rst | 112 +++-- 11 files changed, 711 insertions(+), 98 deletions(-)
---
base-commit: b8a56b8b2e8c0417b2f7204f80c79b05d95e9ce4
change-id: 20260114-code-block-misc-20260114-bf035e4362c2
Best regards,
Signature · 1 line
Quentin Schulz <[email protected]>
PATCH 1/9 sdk-manual: fix incorrect highlight language for text code-blocks
From: Quentin Schulz <[email protected]>
When unspecified in conf.py via the highlight_language variable (and highlight variable for code-blocks), the lexer used for literal blocks is "default" which tries to highlight the block as Python code.
These blocks aren't Python but either simply the console output or a file name (which we should probably just double tick-quote instead), so let's render those blocks with the "text" lexer.
--- documentation/sdk-manual/appendix-obtain.rst | 12 +++++++++--- documentation/sdk-manual/extensible.rst | 4 +++- documentation/sdk-manual/using.rst | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-)
documentation/sdk-manual/appendix-obtain.rst +9 -3
@@ -61,7 +61,9 @@ Follow these steps to locate and hand-install the toolchain: For example, if your build host is a 64-bit x86 system and you need an extended SDK for a 64-bit core2 QEMU target, go into the ``x86_64`` - folder and download the following installer:: + folder and download the following installer: + + .. code-block:: text poky-glibc-x86_64-core-image-sato-core2-64-qemux86-64-toolchain-&DISTRO;.sh
@@ -130,7 +132,9 @@ build the SDK installer. Follow these steps: :term:`SDKMACHINE` value must be set for the architecture of the machine you are using to build the installer. If :term:`SDKMACHINE` is not set appropriately, the build fails and provides an error - message similar to the following:: + message similar to the following: + + .. code-block:: text The extensible SDK can currently only be built for the same architecture as the machine being built on - SDK_ARCH
@@ -224,7 +228,9 @@ Follow these steps to extract the root filesystem: For example, if you plan on using a BeagleBone device as your target hardware and your image is a ``core-image-sato-sdk`` image, you can - download the following file:: + download the following file: + + .. code-block:: text core-image-sato-sdk-beaglebone-yocto.tar.bz2
documentation/sdk-manual/extensible.rst +3 -1
@@ -121,7 +121,9 @@ is the general form:: For example, the following SDK installer is for a 64-bit development host system and a i586-tuned target architecture based off -the SDK for ``core-image-sato`` and using the current &DISTRO; snapshot:: +the SDK for ``core-image-sato`` and using the current &DISTRO; snapshot: + +.. code-block:: text poky-glibc-x86_64-core-image-sato-i586-toolchain-ext-&DISTRO;.sh
documentation/sdk-manual/using.rst +6 -2
@@ -52,7 +52,9 @@ libraries appropriate for developing against the corresponding image. The names of the tarball installer scripts are such that a string representing the host system appears first in the filename and then is -immediately followed by a string representing the target architecture:: +immediately followed by a string representing the target architecture: + +.. code-block:: text poky-glibc-host_system-image_type-arch-toolchain-release_version.sh
@@ -75,7 +77,9 @@ immediately followed by a string representing the target architecture:: For example, the following SDK installer is for a 64-bit development host system and a i586-tuned target architecture based off -the SDK for ``core-image-sato`` and using the current DISTRO snapshot:: +the SDK for ``core-image-sato`` and using the current DISTRO snapshot: + +.. code-block:: text poky-glibc-x86_64-core-image-sato-i586-toolchain-DISTRO.sh
Signature · 1 line
2.52.0
PATCH 2/9 sdk-manual: fix incorrect highlight language for console code-blocks
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
When unspecified in conf.py via the highlight_language variable (and highlight variable for code-blocks), the lexer used for literal blocks is "default" which tries to highlight the block as Python code.
These blocks aren't Python but simple command lines prefixed by a prompt so let's use the "console" lexer to properly highlight.
--- documentation/sdk-manual/appendix-customizing.rst | 4 +- documentation/sdk-manual/appendix-obtain.rst | 28 ++++++-- documentation/sdk-manual/extensible.rst | 38 +++++++--- documentation/sdk-manual/using.rst | 8 ++- documentation/sdk-manual/working-projects.rst | 84 +++++++++++++++++------ 5 files changed, 121 insertions(+), 41 deletions(-)
documentation/sdk-manual/appendix-customizing.rst +3 -1
@@ -189,7 +189,9 @@ the installed SDKs to update the installed SDKs by using the #. Build the extensible SDK normally (i.e., use the ``bitbake -c populate_sdk_ext`` imagename command). -#. Publish the SDK using the following command:: +#. Publish the SDK using the following command: + + .. code-block:: console $ oe-publish-sdk some_path/sdk-installer.sh path_to_shared_http_directory
documentation/sdk-manual/appendix-obtain.rst +21 -7
@@ -69,7 +69,9 @@ Follow these steps to locate and hand-install the toolchain: #. *Run the Installer:* Be sure you have execution privileges and run the installer. Here is an example from the ``Downloads`` - directory:: + directory: + + .. code-block:: console $ ~/Downloads/poky-glibc-x86_64-core-image-sato-core2-64-qemux86-64-toolchain-&DISTRO;.sh
@@ -106,7 +108,9 @@ build the SDK installer. Follow these steps: the Source Directory (i.e. ``poky``), run the :ref:`structure-core-script` environment setup script to define the OpenEmbedded build environment on your - build host:: + build host: + + .. code-block:: console $ source oe-init-build-env
@@ -145,11 +149,15 @@ build the SDK installer. Follow these steps: #. *Build the SDK Installer:* To build the SDK installer for a standard SDK and populate the SDK image, use the following command form. Be - sure to replace ``image`` with an image (e.g. "core-image-sato"):: + sure to replace ``image`` with an image (e.g. "core-image-sato"): + + .. code-block:: console $ bitbake image -c populate_sdk - You can do the same for the extensible SDK using this command form:: + You can do the same for the extensible SDK using this command form: + + .. code-block:: console $ bitbake image -c populate_sdk_ext
@@ -174,7 +182,9 @@ build the SDK installer. Follow these steps: libc-staticdev" #. *Run the Installer:* You can now run the SDK installer from - ``tmp/deploy/sdk`` in the :term:`Build Directory`. Here is an example:: + ``tmp/deploy/sdk`` in the :term:`Build Directory`. Here is an example: + + .. code-block:: console $ cd poky/build/tmp/deploy/sdk $ ./poky-glibc-x86_64-core-image-sato-core2-64-toolchain-ext-&DISTRO;.sh
@@ -242,7 +252,9 @@ Follow these steps to extract the root filesystem: installed the toolchain (e.g. ``poky_sdk``). Here is an example based on the toolchain installed in the - ":ref:`sdk-manual/appendix-obtain:locating pre-built sdk installers`" section:: + ":ref:`sdk-manual/appendix-obtain:locating pre-built sdk installers`" section: + + .. code-block:: console $ source poky_sdk/environment-setup-core2-64-poky-linux
@@ -253,7 +265,9 @@ Follow these steps to extract the root filesystem: from a previously built root filesystem image that was downloaded from the :yocto_dl:`Index of Releases </releases/yocto/&DISTRO_REL_LATEST_TAG;/machines/>`. This command extracts the root filesystem into the ``core2-64-sato`` - directory:: + directory: + + .. code-block:: console $ runqemu-extract-sdk ~/Downloads/core-image-sato-sdk-beaglebone-yocto.tar.bz2 ~/beaglebone-sato
documentation/sdk-manual/extensible.rst +28 -10
@@ -71,7 +71,9 @@ Setting up the Extensible SDK environment directly in a Yocto build #. Set up all the needed layers and a Yocto :term:`Build Directory`, e.g. a regular Yocto build where ``bitbake`` can be executed. -#. Run:: +#. Run: + +.. code-block:: console $ bitbake meta-ide-support $ bitbake -c populate_sysroot gtk+3
@@ -144,7 +146,9 @@ must be writable for whichever users need to use the SDK. The following command shows how to run the installer given a toolchain tarball for a 64-bit x86 development host system and a 64-bit x86 target architecture. The example assumes the SDK installer is located in -``~/Downloads/`` and has execution rights:: +``~/Downloads/`` and has execution rights: + +.. code-block:: console $ ./Downloads/poky-glibc-x86_64-core-image-minimal-core2-64-toolchain-ext-2.5.sh Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.5
@@ -194,7 +198,9 @@ begin with the string "``environment-setup``" and include as part of their name the tuned target architecture. As an example, the following commands set the working directory to where the SDK was installed and then source the environment setup script. In this example, the setup -script is for an IA-based target machine using i586 tuning:: +script is for an IA-based target machine using i586 tuning: + +.. code-block:: console $ cd /home/scottrif/poky_sdk $ source environment-setup-core2-64-poky-linux
@@ -202,7 +208,9 @@ script is for an IA-based target machine using i586 tuning:: Run devtool --help for further details. When using the environment script directly in a Yocto build, it can -be run similarly:: +be run similarly: + +.. code-block:: console $ source tmp/deploy/images/qemux86-64/environment-setup-core2-64-poky-linux
@@ -272,7 +280,9 @@ populated on-demand. Sometimes you must explicitly install extra items into the SDK. If you need these extra items, you can first search for the items using the ``devtool search`` command. For example, suppose you need to link to libGL but you are not sure which recipe provides libGL. -You can use the following command to find out:: +You can use the following command to find out: + +.. code-block:: console $ devtool search libGL mesa A free implementation of the OpenGL API
@@ -285,7 +295,9 @@ When using the extensible SDK directly in a Yocto build In this scenario, the Yocto build tooling, e.g. ``bitbake`` is directly accessible to build additional items, and it -can simply be executed directly:: +can simply be executed directly: + +.. code-block:: console $ bitbake curl-native # Add newly built native items to native sysroot
@@ -297,14 +309,16 @@ can simply be executed directly:: When using a standalone installer for the Extensible SDK -------------------------------------------------------- -:: +.. code-block:: console $ devtool sdk-install mesa By default, the ``devtool sdk-install`` command assumes the item is available in pre-built form from your SDK provider. If the item is not available and it is acceptable to build the item from -source, you can add the "-s" option as follows:: +source, you can add the "-s" option as follows: + +.. code-block:: console $ devtool sdk-install -s mesa
@@ -320,7 +334,9 @@ If you are working with an installed extensible SDK that gets occasionally updated (e.g. a third-party SDK), then you will need to manually "pull down" the updates into the installed SDK. -To update your installed SDK, use ``devtool`` as follows:: +To update your installed SDK, use ``devtool`` as follows: + +.. code-block:: console $ devtool sdk-update
@@ -328,7 +344,9 @@ The previous command assumes your SDK provider has set the default update URL for you through the :term:`SDK_UPDATE_URL` variable as described in the ":ref:`sdk-manual/appendix-customizing:Providing Updates to the Extensible SDK After Installation`" section. If the SDK provider has not set that default URL, you need to -specify it yourself in the command as follows:: +specify it yourself in the command as follows: + +.. code-block:: console $ devtool sdk-update path_to_update_directory
documentation/sdk-manual/using.rst +6 -2
@@ -100,7 +100,9 @@ must be writable for whichever users need to use the SDK. The following command shows how to run the installer given a toolchain tarball for a 64-bit x86 development host system and a 64-bit x86 target architecture. The example assumes the SDK installer is located in -``~/Downloads/`` and has execution rights:: +``~/Downloads/`` and has execution rights: + +.. code-block:: console $ ./Downloads/poky-glibc-x86_64-core-image-sato-i586-toolchain-&DISTRO;.sh Poky (Yocto Project Reference Distro) SDK installer version &DISTRO;
@@ -140,7 +142,9 @@ begin with the string "``environment-setup``" and include as part of their name the tuned target architecture. As an example, the following commands set the working directory to where the SDK was installed and then source the environment setup script. In this example, the setup -script is for an IA-based target machine using i586 tuning:: +script is for an IA-based target machine using i586 tuning: + +.. code-block:: console $ source /opt/poky/&DISTRO;/environment-setup-i586-poky-linux
documentation/sdk-manual/working-projects.rst +63 -21
201 lines not on this page · raw message
Signature · 1 line
2.52.0
PATCH 3/9 sdk-manual: fix improper indent of general form of tarball installer script
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
poky-glibc-host_system-image_type-arch-toolchain-ext-release_version.sh is in a code-block and thus requires to be indented (it is). Sphinx knows a block has ended when the indentation of the next line is smaller than in the block, otherwise it's all in the same block.
The explanation of the replaceable parts in the tarball installer script filename should be text and not part of the block, so let's do that.
While at it, reformat by putting each replaceable part in a bullet list, highlight the replaceable part or what it can replaced with as well as putting the replacement on the same line instead of making it a quote by having them indented in the bullet list.
--- documentation/sdk-manual/extensible.rst | 17 +++++------------ documentation/sdk-manual/using.rst | 17 +++++------------ 2 files changed, 10 insertions(+), 24 deletions(-)
documentation/sdk-manual/extensible.rst +5 -12
@@ -104,22 +104,15 @@ is the general form:: poky-glibc-host_system-image_type-arch-toolchain-ext-release_version.sh - Where: - host_system is a string representing your development system: +Where: - i686 or x86_64. +- `host_system` is a string representing your development system: `i686` or `x86_64`. - image_type is the image for which the SDK was built: +- `image_type` is the image for which the SDK was built: `core-image-sato` or `core-image-minimal`. - core-image-sato or core-image-minimal +- `arch` is a string representing the tuned target architecture: `aarch64`, `armv5e`, `core2-64`, `i586`, `mips32r2`, `mips64`, `ppc7400`, or `cortexa8hf-neon`. - arch is a string representing the tuned target architecture: - - aarch64, armv5e, core2-64, i586, mips32r2, mips64, ppc7400, or cortexa8hf-neon - - release_version is a string representing the release number of the Yocto Project: - - &DISTRO;, &DISTRO;+snapshot +- `release_version` is a string representing the release number of the Yocto Project: `&DISTRO;`, `&DISTRO;+snapshot`. For example, the following SDK installer is for a 64-bit development host system and a i586-tuned target architecture based off
documentation/sdk-manual/using.rst +5 -12
@@ -58,22 +58,15 @@ immediately followed by a string representing the target architecture: poky-glibc-host_system-image_type-arch-toolchain-release_version.sh - Where: - host_system is a string representing your development system: +Where: - i686 or x86_64. +- `host_system` is a string representing your development system: `i686` or `x86_64`. - image_type is the image for which the SDK was built: +- `image_type` is the image for which the SDK was built: `core-image-minimal` or `core-image-sato`. - core-image-minimal or core-image-sato. +- `arch` is a string representing the tuned target architecture: `aarch64`, `armv5e`, `core2-64`, `i586`, `mips32r2`, `mips64`, `ppc7400`, or `cortexa8hf-neon`. - arch is a string representing the tuned target architecture: - - aarch64, armv5e, core2-64, i586, mips32r2, mips64, ppc7400, or cortexa8hf-neon. - - release_version is a string representing the release number of the Yocto Project: - - &DISTRO;, &DISTRO;+snapshot +- `release_version` is a string representing the release number of the Yocto Project: `&DISTRO;`, `&DISTRO;+snapshot`. For example, the following SDK installer is for a 64-bit development host system and a i586-tuned target architecture based off
Signature · 1 line
2.52.0
Re: [docs] [PATCH 3/9] sdk-manual: fix improper indent of general form of tarball installer script
Hi,
Quoted 26 lines · Quentin Schulz
From: Quentin Schulz <[email protected]>
poky-glibc-host_system-image_type-arch-toolchain-ext-release_version.shis in a code-block and thus requires to be indented (it is). Sphinx knows a block has ended when the indentation of the next line is smaller than in the block, otherwise it's all in the same block.The explanation of the replaceable parts in the tarball installer script filename should be text and not part of the block, so let's do that.
While at it, reformat by putting each replaceable part in a bullet list, highlight the replaceable part or what it can replaced with as well as putting the replacement on the same line instead of making it a quote by having them indented in the bullet list.
Signed-off-by Quentin Schulz <[email protected]>--- documentation/sdk-manual/extensible.rst | 17 +++++------------ documentation/sdk-manual/using.rst | 17 +++++------------ 2 files changed, 10 insertions(+), 24 deletions(-)documentation/sdk-manual/extensible.rst +0
-0
documentation/sdk-manual/extensible.rst is the general form:: · line 109
Quoted 9 lines
documentation/sdk-manual/extensible.rst +2
-3@@ -104,22 +104,15 @@ is the general form:: poky-glibc-host_system-image_type-arch-toolchain-ext-release_version.sh - Where: - host_system is a string representing your development system: +Where: - i686 or x86_64. +- `host_system` is a string representing your development system: `i686` or `x86_64`.
Shouldn't those (and the following) be enclosed with double ticks? ``host_system``, etc.
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [docs] [PATCH 3/9] sdk-manual: fix improper indent of general form of tarball installer script
Hi Antonin,
Quoted 36 lines · Antonin Godard
Hi,
Quoted 33 lines · Quentin Schulz
From: Quentin Schulz <[email protected]>
poky-glibc-host_system-image_type-arch-toolchain-ext-release_version.shis in a code-block and thus requires to be indented (it is). Sphinx knows a block has ended when the indentation of the next line is smaller than in the block, otherwise it's all in the same block.The explanation of the replaceable parts in the tarball installer script filename should be text and not part of the block, so let's do that.
While at it, reformat by putting each replaceable part in a bullet list, highlight the replaceable part or what it can replaced with as well as putting the replacement on the same line instead of making it a quote by having them indented in the bullet list.
Signed-off-by Quentin Schulz <[email protected]>--- documentation/sdk-manual/extensible.rst | 17 +++++------------ documentation/sdk-manual/using.rst | 17 +++++------------ 2 files changed, 10 insertions(+), 24 deletions(-)documentation/sdk-manual/extensible.rst +1
-2@@ -104,22 +104,15 @@ is the general form:: poky-glibc-host_system-image_type-arch-toolchain-ext-release_version.sh - Where: - host_system is a string representing your development system: +Where:
Quoted 6 lines
documentation/sdk-manual/extensible.rst is the general form:: · line 109
Quoted 2 lines
documentation/sdk-manual/extensible.rst +1
-1- i686 or x86_64. +- `host_system` is a string representing your development system: `i686` or `x86_64`.Shouldn't those (and the following) be enclosed with double ticks? ``host_system``, etc.
Well... For the first one, I'm not so sure as it is pointing at something in the code-block, so emphasis rather than monospace font seems more appropriate here. We should probably use double-tick quotes for the possible values though I agree. I'm wondering if this isn't a good place to experiment with parsed-literal blocks.
Cheers,
Quentin
PATCH 4/9 sdk-manual: working-projects: properly highlight code code-blocks
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
There are some blocks containing C code so highlight them as C with the "c" lexer.
For autotool'ed files, there's no lexer available so "none" will do just fine.
Finally, there's one Makefile code block so highlight it with the "makefile" lexer.
--- documentation/sdk-manual/working-projects.rst | 28 ++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-)
documentation/sdk-manual/working-projects.rst +21 -7
@@ -56,7 +56,9 @@ project: Create the remaining three files as follows: - - ``hello.c``:: + - ``hello.c``: + + .. code-block:: c #include <stdio.h>
@@ -66,7 +68,9 @@ project: return 0; } - - ``configure.ac``:: + - ``configure.ac``: + + .. code-block:: none AC_INIT(hello,0.1) AM_INIT_AUTOMAKE([foreign])
@@ -74,7 +78,9 @@ project: AC_CONFIG_FILES(Makefile) AC_OUTPUT - - ``Makefile.am``:: + - ``Makefile.am``: + + .. code-block:: none bin_PROGRAMS = hello hello_SOURCES = hello.c
@@ -271,7 +277,9 @@ example: Create the three files as follows: - - ``main.c``:: + - ``main.c``: + + .. code-block:: c #include "module.h" void sample_func();
@@ -281,12 +289,16 @@ example: return 0; } - - ``module.h``:: + - ``module.h``: + + .. code-block:: c #include <stdio.h> void sample_func(); - - ``module.c``:: + - ``module.c``: + + .. code-block:: c #include "module.h" void sample_func()
@@ -321,7 +333,9 @@ example: two lines that can be used to set the :term:`CC` variable. One line is identical to the value that is set when you run the SDK environment setup script, and the other line sets :term:`CC` to "gcc", the default - GNU compiler on the build host:: + GNU compiler on the build host: + + .. code-block:: Makefile # CC=i586-poky-linux-gcc -m32 -march=i586 --sysroot=/opt/poky/2.5/sysroots/i586-poky-linux # CC="gcc"
Signature · 1 line
2.52.0
PATCH 5/9 sdk-manual: appending-customizing: use none lexer for BitBake code blocks
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
No lexer exists for BitBake right now, so let's simply disable the lexer entirely by using the "none" lexer.
I'm using "none" instead of "text" to be able to "easily" replace none code blocks the day a BitBake lexer exists. I "reserve" "text" for actual text content (e.g. a filename, or the output of a command line without the command line).
--- documentation/sdk-manual/appendix-customizing.rst | 32 +++++++++++++++++------ 1 file changed, 24 insertions(+), 8 deletions(-)
documentation/sdk-manual/appendix-customizing.rst +24 -8
@@ -147,7 +147,9 @@ from the :term:`DISTRO` variable. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines the default value of the :term:`SDK_TITLE` variable as -follows:: +follows: + +.. code-block:: none SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
@@ -159,7 +161,9 @@ an example, assume you have your own layer for your distribution named does the default "poky" distribution. If so, you could update the :term:`SDK_TITLE` variable in the ``~/meta-mydistro/conf/distro/mydistro.conf`` file using the following -form:: +form: + +.. code-block:: none SDK_TITLE = "your_title"
@@ -214,7 +218,9 @@ installation directory for the SDK is based on the :term:`SDKEXTPATH` variables from within the :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` -class as follows:: +class as follows: + +.. code-block:: none SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
@@ -231,7 +237,9 @@ assume you have your own layer for your distribution named does the default "poky" distribution. If so, you could update the :term:`SDKEXTPATH` variable in the ``~/meta-mydistro/conf/distro/mydistro.conf`` file using the following -form:: +form: + +.. code-block:: none SDKEXTPATH = "some_path_for_your_installed_sdk"
@@ -265,7 +273,9 @@ source, you need to do a number of things: #. Set the appropriate configuration so that the produced SDK knows how to find the configuration. The variable you need to set is - :term:`SSTATE_MIRRORS`:: + :term:`SSTATE_MIRRORS`: + + .. code-block:: none SSTATE_MIRRORS = "file://.* https://example.com/some_path/sstate-cache/PATH"
@@ -278,7 +288,9 @@ source, you need to do a number of things: side, and its contents will not interfere with the build), then you can set the variable in your ``local.conf`` or custom distro configuration file. You can then pass the variable to the SDK by - adding the following:: + adding the following: + + .. code-block:: none ESDK_LOCALCONF_ALLOW = "SSTATE_MIRRORS"
@@ -301,7 +313,9 @@ everything needed to reconstruct the image for which the SDK was built. This bundling can lead to an SDK installer file that is a Gigabyte or more in size. If the size of this file causes a problem, you can build an SDK that has just enough in it to install and provide access to the -``devtool command`` by setting the following in your configuration:: +``devtool command`` by setting the following in your configuration: + +.. code-block:: none SDK_EXT_TYPE = "minimal"
@@ -323,7 +337,9 @@ information enables the ``devtool search`` command to return useful results. To facilitate this wider range of information, you would need to set the -following:: +following: + +.. code-block:: none SDK_INCLUDE_PKGDATA = "1"
Signature · 1 line
2.52.0
PATCH 6/9 sdk-manual: appendix-obtain: replace directory structure PNG with a code-block
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
This PNG is totally unnecessary and makes accessibility much worse, so let's simply replace the PNG with a text code-block showing the same directory layout.
--- documentation/sdk-manual/appendix-obtain.rst | 38 ++++++++++++++++++--- .../sdk-installed-extensible-sdk-directory.png | Bin 66753 -> 0 bytes 2 files changed, 33 insertions(+), 5 deletions(-)
documentation/sdk-manual/appendix-obtain.rst +33 -5
@@ -276,12 +276,40 @@ Follow these steps to extract the root filesystem: Installed Standard SDK Directory Structure ========================================== -The following figure shows the resulting directory structure after you -install the Standard SDK by running the ``*.sh`` SDK installation -script: +After you install the Standard SDK by running the ``*.sh`` SDK installation +script, the following directory structure should be observed: -.. image:: figures/sdk-installed-standard-sdk-directory.png - :scale: 100% +.. code-block:: text + + install_dir/version/ + ├── environment-setup-target-poky-linux + ├── site-config-target-poky-linux + ├── version-target-poky-linux + └── sysroots/ + ├── target-poky-linux/ + │ ├── bin/ + │ ├── boot/ + │ ├── dev/ + │ ├── etc/ + │ ├── home/ + │ ├── lib/ + │ ├── media/ + │ ├── mnt/ + │ ├── proc/ + │ ├── run/ + │ ├── sbin/ + │ ├── sys/ + │ ├── tmp/ + │ ├── usr/ + │ └── var/ + └── host-pokysdk-linux/ + ├── bin/ + ├── environment-setup.d/ + ├── etc/ + ├── lib/ + ├── sbin/ + ├── usr/ + └── var/ The installed SDK consists of an environment setup script for the SDK, a configuration file for the target, a version file for the target, and
documentation/sdk-manual/figures/sdk-installed-extensible-sdk-directory.png deleted binary +0 -0
Signature · 1 line
2.52.0
Re: [docs] [PATCH 6/9] sdk-manual: appendix-obtain: replace directory structure PNG with a code-block
Hi,
Quoted 5 lines · Quentin Schulz
From: Quentin Schulz <[email protected]>
This PNG is totally unnecessary and makes accessibility much worse, so let's simply replace the PNG with a text code-block showing the same directory layout.
Thanks, I agree completely. There are more across the documentation IIRC, this is easy to replace, I should get it to it when I have some time.
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [docs] [PATCH 6/9] sdk-manual: appendix-obtain: replace directory structure PNG with a code-block
Hi Antonin,
Quoted 12 lines · Antonin Godard
Hi,
Quoted 5 lines · Quentin Schulz
From: Quentin Schulz <[email protected]>
This PNG is totally unnecessary and makes accessibility much worse, so let's simply replace the PNG with a text code-block showing the same directory layout.
Thanks, I agree completely. There are more across the documentation IIRC, this is easy to replace, I should get it to it when I have some time.
I think this may be a good place to use the parsed-literal block that Robert suggested, so that we can highlight "placeholders".
What do you think?
Cheers,
Quentin
Re: [docs] [PATCH 6/9] sdk-manual: appendix-obtain: replace directory structure PNG with a code-block
Quoted 12 lines · Quentin Schulz via lists.yoctoproject.org
Hi Antonin,
Quoted 9 lines · Antonin Godard
Hi,
Quoted 5 lines · Quentin Schulz
From: Quentin Schulz <[email protected]>
This PNG is totally unnecessary and makes accessibility much worse, so let's simply replace the PNG with a text code-block showing the same directory layout.
Quoted 8 lines
Quoted 3 lines
Thanks, I agree completely. There are more across the documentation IIRC, this is easy to replace, I should get it to it when I have some time.
I think this may be a good place to use the parsed-literal block that Robert suggested, so that we can highlight "placeholders".
What do you think?
Yes, if I understood how it worked, I think it is appropriate here or in other places, definitely.
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 7/9 sdk-manual: appendix-obtain: replace eSDK directory structure PNG with a code-block
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
This PNG is totally unnecessary and makes accessibility much worse, so let's simply replace the PNG with a text code-block showing the same directory layout.
--- documentation/sdk-manual/appendix-obtain.rst | 26 ++++++++++++++++----- .../sdk-installed-standard-sdk-directory.png | Bin 39099 -> 0 bytes 2 files changed, 20 insertions(+), 6 deletions(-)
documentation/sdk-manual/appendix-obtain.rst +20 -6
@@ -329,13 +329,27 @@ directories within the ``sysroots`` could be ``i586-poky-linux`` and Installed Extensible SDK Directory Structure ============================================ -The following figure shows the resulting directory structure after you -install the Extensible SDK by running the ``*.sh`` SDK installation -script: +After you install the Extensible SDK by running the ``*.sh`` SDK installation +script, the following directory structure should be observed: -.. image:: figures/sdk-installed-extensible-sdk-directory.png - :scale: 80% - :align: center +.. code-block:: text + + install_dir/ + ├── bitbake-cookerdaemon.log + ├── environment-setup-target-poky-linux + ├── preparing_system_build.log + ├── site-config-target-poky-linux + ├── version-target-poky-linux + ├── .devtoolbase + ├── buildtools/ + ├── cache/ + ├── conf/ + ├── downloads/ + ├── layers/ + ├── sstate-cache/ + ├── sysroots/ + ├── tmp/ + └── workspace/ The installed directory structure for the extensible SDK is quite different than the installed structure for the standard SDK. The
documentation/sdk-manual/figures/sdk-installed-standard-sdk-directory.png deleted binary +0 -0
Signature · 1 line
2.52.0
PATCH 8/9 sdk-manual: replace sdk-environment PNG with SVG
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
This replaces the PNG figure with an SVG.
--- .../sdk-manual/figures/sdk-environment.png | Bin 42098 -> 0 bytes documentation/sdk-manual/intro.rst | 2 +- documentation/sdk-manual/svg/sdk-environment.svg | 463 +++++++++++++++++++++ 3 files changed, 464 insertions(+), 1 deletion(-)
documentation/sdk-manual/figures/sdk-environment.png deleted binary +0 -0
documentation/sdk-manual/intro.rst +1 -1
@@ -148,7 +148,7 @@ SDK Development Model Fundamentally, the SDK fits into the development process as follows: -.. image:: figures/sdk-environment.png +.. image:: svg/sdk-environment.* :width: 100% The SDK is installed on any machine and can be used to develop applications,
documentation/sdk-manual/svg/sdk-environment.svg new file +463 -0
463 lines not on this page · raw message
Signature · 1 line
2.52.0
PATCH 9/9 sdk-manual: delete sdk-title PNG
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
It hasn't been used since the migration to Sphinx so let's remove it.
--- documentation/sdk-manual/figures/sdk-title.png | Bin 31039 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-)
documentation/sdk-manual/figures/sdk-title.png deleted binary +0 -0
Signature · 1 line
2.52.0
Antonin Godard
AppliedApplied, thanks!
[1/9] sdk-manual: fix incorrect highlight language for text code-blocks
commit: 72354c27000aba3ae583894ff6112a1a017e33d5
[2/9] sdk-manual: fix incorrect highlight language for console code-blocks
commit: c6039ce11d638a0b64844480e51d126fcda304b4
[3/9] sdk-manual: fix improper indent of general form of tarball installer script
(no commit info)
[4/9] sdk-manual: working-projects: properly highlight code code-blocks
commit: 10d40604cb4affb17dda2253f82a2422d5a9bcf6
[5/9] sdk-manual: appending-customizing: use none lexer for BitBake code blocks
commit: d682bce63cdc5aad9c2d3b932a6ba2d27ecfe107[6/9] sdk-manual: appendix-obtain: replace directory structure PNG with a code-block
(no commit info)
[7/9] sdk-manual: appendix-obtain: replace eSDK directory structure PNG with a code-block
(no commit info)
[8/9] sdk-manual: replace sdk-environment PNG with SVG
commit: 39fb148792cd6b8e567a496bdbe63a50759eef36
[9/9] sdk-manual: delete sdk-title PNG
commit: ffaea8391b3d78c2ccf964474e03c50a1c043c6c