diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-07-24 16:27:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-17 10:09:33 +0100 |
commit | c473fa229239752367c5d573160fc8738cf1907e (patch) | |
tree | f8520ba3aa3cf911333dbd31e38e9a52203a0285 /documentation/ref-manual/ref-features.rst | |
parent | 4cd953989de42c7a83f666c23e077d53b016a1f1 (diff) | |
download | poky-c473fa229239752367c5d573160fc8738cf1907e.tar.gz |
sphinx: fix internal links
Many of the internal links were not converted probably from DocBook
using pandoc. After looking at the various patterns, the follow series
of 'naive' Python regexp were used to perform some additional
automatic conversion.
Also, since we rely on built-in glossary, all links to terms need to
use the sphinx :term: syntax.
This commit is generated using the following Python series of regexp:
line = re.sub("`+(\w+)`* <(\&YOCTO_DOCS_REF_URL;)?#var-\\1>`__",
":term:`\\1`",
line)
line = re.sub("`+do_([a-z_]+)`* <(\&YOCTO_DOCS_REF_URL;)?#ref-tasks-\\1>`__",
":ref:`ref-tasks-\\1`",
line)
line = re.sub("`+([a-z_\-\*\.]+).bbclass`* <(\&YOCTO_DOCS_REF_URL;)?#ref-classes-\\1>`__",
":ref:`\\1.bbclass <ref-classes-\\1>`",
line)
line = re.sub("`+([a-z_\-\*\.]+)`* <(\&YOCTO_DOCS_REF_URL;)?#ref-classes-\\1>`__",
":ref:`\\1 <ref-classes-\\1>`",
line)
line = re.sub("`Source Directory <(\&YOCTO_DOCS_REF_URL;)?#source-directory>`__",
":term:`Source Directory`",
line)
line = re.sub("`Build Directory <(\&YOCTO_DOCS_REF_URL;)?#build-directory>`__",
":term:`Build Directory`",
line)
line = re.sub("`Metadata <(\&YOCTO_DOCS_REF_URL;)?#metadata>`__",
":term:`Metadata`",
line)
line = re.sub("`BitBake <(\&YOCTO_DOCS_REF_URL;)?#bitbake-term>`__",
":term:`BitBake`",
line)
line = re.sub("`Images <(\&YOCTO_DOCS_REF_URL;)?#ref-images>`__",
":ref:`ref-manual/ref-images:Images`",
line)
line = re.sub("`Classes <(\&YOCTO_DOCS_REF_URL;)?#ref-classes>`__",
":ref:`ref-manual/ref-classes:Classes`",
line)
line = re.sub("`workspace <(\&YOCTO_DOCS_REF_URL;)?#devtool-the-workspace-layer-structure>`__",
":ref:`devtool-the-workspace-layer-structure`",
line)
line = re.sub("`Open-?Embedded b?B?uild s?S?ystem <(\&YOCTO_DOCS_REF_URL;)?#build-system-term>`__",
":term:`OpenEmbedded Build System`",
line)
line = re.sub("`(OpenEmbedded-Core )?(\(?OE-Core\)? )?<(\&YOCTO_DOCS_REF_URL;)?#oe-core>`__",
":term:`OpenEmbedded-Core (OE-Core)`",
line)
It won't catch multiline strings, but it catches a very large number
of occurences!
(From yocto-docs rev: 3f537d17de5b1fb76ba3bee196481984a4826378)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/ref-features.rst')
-rw-r--r-- | documentation/ref-manual/ref-features.rst | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/documentation/ref-manual/ref-features.rst b/documentation/ref-manual/ref-features.rst index 1aa57a27d4..0e901edaeb 100644 --- a/documentation/ref-manual/ref-features.rst +++ b/documentation/ref-manual/ref-features.rst | |||
@@ -24,7 +24,7 @@ included if the distribution itself does not support them. | |||
24 | 24 | ||
25 | One method you can use to determine which recipes are checking to see if | 25 | One method you can use to determine which recipes are checking to see if |
26 | a particular feature is contained or not is to ``grep`` through the | 26 | a particular feature is contained or not is to ``grep`` through the |
27 | `Metadata <#metadata>`__ for the feature. Here is an example that | 27 | :term:`Metadata` for the feature. Here is an example that |
28 | discovers the recipes whose build is potentially changed based on a | 28 | discovers the recipes whose build is potentially changed based on a |
29 | given feature: $ cd poky $ git grep | 29 | given feature: $ cd poky $ git grep |
30 | 'contains.*MACHINE_FEATURES.*feature' | 30 | 'contains.*MACHINE_FEATURES.*feature' |
@@ -35,12 +35,12 @@ Machine Features | |||
35 | ================ | 35 | ================ |
36 | 36 | ||
37 | The items below are features you can use with | 37 | The items below are features you can use with |
38 | ```MACHINE_FEATURES`` <#var-MACHINE_FEATURES>`__. Features do not have a | 38 | :term:`MACHINE_FEATURES`. Features do not have a |
39 | one-to-one correspondence to packages, and they can go beyond simply | 39 | one-to-one correspondence to packages, and they can go beyond simply |
40 | controlling the installation of a package or packages. Sometimes a | 40 | controlling the installation of a package or packages. Sometimes a |
41 | feature can influence how certain recipes are built. For example, a | 41 | feature can influence how certain recipes are built. For example, a |
42 | feature might determine whether a particular configure option is | 42 | feature might determine whether a particular configure option is |
43 | specified within the ```do_configure`` <#ref-tasks-configure>`__ task | 43 | specified within the :ref:`ref-tasks-configure` task |
44 | for a particular recipe. | 44 | for a particular recipe. |
45 | 45 | ||
46 | This feature list only represents features as shipped with the Yocto | 46 | This feature list only represents features as shipped with the Yocto |
@@ -92,18 +92,18 @@ Distro Features | |||
92 | =============== | 92 | =============== |
93 | 93 | ||
94 | The items below are features you can use with | 94 | The items below are features you can use with |
95 | ```DISTRO_FEATURES`` <#var-DISTRO_FEATURES>`__ to enable features across | 95 | :term:`DISTRO_FEATURES` to enable features across |
96 | your distribution. Features do not have a one-to-one correspondence to | 96 | your distribution. Features do not have a one-to-one correspondence to |
97 | packages, and they can go beyond simply controlling the installation of | 97 | packages, and they can go beyond simply controlling the installation of |
98 | a package or packages. In most cases, the presence or absence of a | 98 | a package or packages. In most cases, the presence or absence of a |
99 | feature translates to the appropriate option supplied to the configure | 99 | feature translates to the appropriate option supplied to the configure |
100 | script during the ```do_configure`` <#ref-tasks-configure>`__ task for | 100 | script during the :ref:`ref-tasks-configure` task for |
101 | the recipes that optionally support the feature. | 101 | the recipes that optionally support the feature. |
102 | 102 | ||
103 | Some distro features are also machine features. These select features | 103 | Some distro features are also machine features. These select features |
104 | make sense to be controlled both at the machine and distribution | 104 | make sense to be controlled both at the machine and distribution |
105 | configuration level. See the | 105 | configuration level. See the |
106 | ```COMBINED_FEATURES`` <#var-COMBINED_FEATURES>`__ variable for more | 106 | :term:`COMBINED_FEATURES` variable for more |
107 | information. | 107 | information. |
108 | 108 | ||
109 | This list only represents features as shipped with the Yocto Project | 109 | This list only represents features as shipped with the Yocto Project |
@@ -189,8 +189,8 @@ Image Features | |||
189 | ============== | 189 | ============== |
190 | 190 | ||
191 | The contents of images generated by the OpenEmbedded build system can be | 191 | The contents of images generated by the OpenEmbedded build system can be |
192 | controlled by the ```IMAGE_FEATURES`` <#var-IMAGE_FEATURES>`__ and | 192 | controlled by the :term:`IMAGE_FEATURES` and |
193 | ```EXTRA_IMAGE_FEATURES`` <#var-EXTRA_IMAGE_FEATURES>`__ variables that | 193 | :term:`EXTRA_IMAGE_FEATURES` variables that |
194 | you typically configure in your image recipes. Through these variables, | 194 | you typically configure in your image recipes. Through these variables, |
195 | you can add several different predefined packages such as development | 195 | you can add several different predefined packages such as development |
196 | utilities or packages with debug information needed to investigate | 196 | utilities or packages with debug information needed to investigate |
@@ -254,7 +254,7 @@ The following image features are available for all images: | |||
254 | a given image. | 254 | a given image. |
255 | 255 | ||
256 | Some image features are available only when you inherit the | 256 | Some image features are available only when you inherit the |
257 | ```core-image`` <#ref-classes-core-image>`__ class. The current list of | 257 | :ref:`core-image <ref-classes-core-image>` class. The current list of |
258 | these valid features is as follows: | 258 | these valid features is as follows: |
259 | 259 | ||
260 | - *hwcodecs:* Installs hardware acceleration codecs. | 260 | - *hwcodecs:* Installs hardware acceleration codecs. |
@@ -299,8 +299,8 @@ Feature Backfilling | |||
299 | =================== | 299 | =================== |
300 | 300 | ||
301 | Sometimes it is necessary in the OpenEmbedded build system to extend | 301 | Sometimes it is necessary in the OpenEmbedded build system to extend |
302 | ```MACHINE_FEATURES`` <#var-MACHINE_FEATURES>`__ or | 302 | :term:`MACHINE_FEATURES` or |
303 | ```DISTRO_FEATURES`` <#var-DISTRO_FEATURES>`__ to control functionality | 303 | :term:`DISTRO_FEATURES` to control functionality |
304 | that was previously enabled and not able to be disabled. For these | 304 | that was previously enabled and not able to be disabled. For these |
305 | cases, we need to add an additional feature item to appear in one of | 305 | cases, we need to add an additional feature item to appear in one of |
306 | these variables, but we do not want to force developers who have | 306 | these variables, but we do not want to force developers who have |
@@ -310,8 +310,8 @@ Thus, the OpenEmbedded build system has a mechanism to automatically | |||
310 | "backfill" these added features into existing distro or machine | 310 | "backfill" these added features into existing distro or machine |
311 | configurations. You can see the list of features for which this is done | 311 | configurations. You can see the list of features for which this is done |
312 | by finding the | 312 | by finding the |
313 | ```DISTRO_FEATURES_BACKFILL`` <#var-DISTRO_FEATURES_BACKFILL>`__ and | 313 | :term:`DISTRO_FEATURES_BACKFILL` and |
314 | ```MACHINE_FEATURES_BACKFILL`` <#var-MACHINE_FEATURES_BACKFILL>`__ | 314 | :term:`MACHINE_FEATURES_BACKFILL` |
315 | variables in the ``meta/conf/bitbake.conf`` file. | 315 | variables in the ``meta/conf/bitbake.conf`` file. |
316 | 316 | ||
317 | Because such features are backfilled by default into all configurations | 317 | Because such features are backfilled by default into all configurations |
@@ -319,9 +319,9 @@ as described in the previous paragraph, developers who wish to disable | |||
319 | the new features need to be able to selectively prevent the backfilling | 319 | the new features need to be able to selectively prevent the backfilling |
320 | from occurring. They can do this by adding the undesired feature or | 320 | from occurring. They can do this by adding the undesired feature or |
321 | features to the | 321 | features to the |
322 | ```DISTRO_FEATURES_BACKFILL_CONSIDERED`` <#var-DISTRO_FEATURES_BACKFILL_CONSIDERED>`__ | 322 | :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` |
323 | or | 323 | or |
324 | ```MACHINE_FEATURES_BACKFILL_CONSIDERED`` <#var-MACHINE_FEATURES_BACKFILL_CONSIDERED>`__ | 324 | :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` |
325 | variables for distro features and machine features respectively. | 325 | variables for distro features and machine features respectively. |
326 | 326 | ||
327 | Here are two examples to help illustrate feature backfilling: | 327 | Here are two examples to help illustrate feature backfilling: |