summaryrefslogtreecommitdiffstats
path: root/documentation/profile-manual/profile-manual-usage.rst
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-07-24 16:27:54 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-17 10:09:33 +0100
commitc473fa229239752367c5d573160fc8738cf1907e (patch)
treef8520ba3aa3cf911333dbd31e38e9a52203a0285 /documentation/profile-manual/profile-manual-usage.rst
parent4cd953989de42c7a83f666c23e077d53b016a1f1 (diff)
downloadpoky-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/profile-manual/profile-manual-usage.rst')
-rw-r--r--documentation/profile-manual/profile-manual-usage.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/profile-manual/profile-manual-usage.rst b/documentation/profile-manual/profile-manual-usage.rst
index a2206cc829..b97a1c6e96 100644
--- a/documentation/profile-manual/profile-manual-usage.rst
+++ b/documentation/profile-manual/profile-manual-usage.rst
@@ -50,7 +50,7 @@ outlined in the General Setup section.
50 50
51In particular, you'll get the most mileage out of perf if you profile an 51In particular, you'll get the most mileage out of perf if you profile an
52image built with the following in your ``local.conf`` file: 52image built with the following in your ``local.conf`` file:
53`INHIBIT_PACKAGE_STRIP <&YOCTO_DOCS_REF_URL;#var-INHIBIT_PACKAGE_STRIP>`__ 53:term:`INHIBIT_PACKAGE_STRIP`
54= "1" 54= "1"
55 55
56perf runs on the target system for the most part. You can archive 56perf runs on the target system for the most part. You can archive
@@ -246,7 +246,7 @@ system.
246 246
247One way around that is to put the following in your ``local.conf`` file 247One way around that is to put the following in your ``local.conf`` file
248when you build the image: 248when you build the image:
249`INHIBIT_PACKAGE_STRIP <&YOCTO_DOCS_REF_URL;#var-INHIBIT_PACKAGE_STRIP>`__ 249:term:`INHIBIT_PACKAGE_STRIP`
250= "1" However, we already have an image with the binaries stripped, so 250= "1" However, we already have an image with the binaries stripped, so
251what can we do to get perf to resolve the symbols? Basically we need to 251what can we do to get perf to resolve the symbols? Basically we need to
252install the debuginfo for the busybox package. 252install the debuginfo for the busybox package.
@@ -256,7 +256,7 @@ dbg-pkgs to EXTRA_IMAGE_FEATURES in local.conf. For example:
256EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile dbg-pkgs" 256EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile dbg-pkgs"
257Additionally, in order to generate the type of debuginfo that perf 257Additionally, in order to generate the type of debuginfo that perf
258understands, we also need to set 258understands, we also need to set
259```PACKAGE_DEBUG_SPLIT_STYLE`` <&YOCTO_DOCS_REF_URL;#var-PACKAGE_DEBUG_SPLIT_STYLE>`__ 259:term:`PACKAGE_DEBUG_SPLIT_STYLE`
260in the ``local.conf`` file: PACKAGE_DEBUG_SPLIT_STYLE = 260in the ``local.conf`` file: PACKAGE_DEBUG_SPLIT_STYLE =
261'debug-file-directory' Once we've done that, we can install the 261'debug-file-directory' Once we've done that, we can install the
262debuginfo for busybox. The debug packages once built can be found in 262debuginfo for busybox. The debug packages once built can be found in