summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2021-10-05 17:17:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-08 22:01:24 +0100
commit60b02e9daa0bf545ddb54c3796fe4eda9fe56f92 (patch)
treebb2eb319a262b717ce7d69f2cfe516c8015a8711
parentf7a8e145e96b7056237e8911d799afa4430edbe3 (diff)
downloadpoky-60b02e9daa0bf545ddb54c3796fe4eda9fe56f92.tar.gz
ref-manual: document DEBUG_PREFIX_MAP
Fixes [YOCTO #14433] (From yocto-docs rev: 23eb07c26044d06bc51c757bf1b0a53b1b357dc8) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/ref-manual/variables.rst17
-rw-r--r--documentation/test-manual/reproducible-builds.rst2
2 files changed, 18 insertions, 1 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 6638ece539..5cb036c304 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -1582,6 +1582,23 @@ system and gives an overview of their function and contents.
1582 by :term:`BBFILE_PRIORITY` if that variable is different between two 1582 by :term:`BBFILE_PRIORITY` if that variable is different between two
1583 layers that contain different versions of the same recipe. 1583 layers that contain different versions of the same recipe.
1584 1584
1585 :term:`DEBUG_PREFIX_MAP`
1586 Allows to set C compiler options, such as ``-fdebug-prefix-map``,
1587 ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
1588 replace build-time paths by install-time ones in the debugging sections
1589 of binaries. This makes compiler output files location independent,
1590 at the cost of having to pass an extra command to tell the debugger
1591 where source files are.
1592
1593 This is used by the Yocto Project to guarantee
1594 :doc:`/test-manual/reproducible-builds` even when the source code of
1595 a package uses the ``__FILE__`` or ``assert()`` macros. See the
1596 `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
1597 website for details.
1598
1599 This variable is set in the ``meta/conf/bitbake.conf`` file. It is
1600 not intended to be user-configurable.
1601
1585 :term:`DEFAULTTUNE` 1602 :term:`DEFAULTTUNE`
1586 The default CPU and Application Binary Interface (ABI) tunings (i.e. 1603 The default CPU and Application Binary Interface (ABI) tunings (i.e.
1587 the "tune") used by the OpenEmbedded build system. The 1604 the "tune") used by the OpenEmbedded build system. The
diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst
index 68fdf547bd..349cd1953e 100644
--- a/documentation/test-manual/reproducible-builds.rst
+++ b/documentation/test-manual/reproducible-builds.rst
@@ -53,7 +53,7 @@ things we do within the build system to ensure reproducibility include:
53 53
54- Adding mappings to the compiler options to ensure debug filepaths are mapped 54- Adding mappings to the compiler options to ensure debug filepaths are mapped
55 to consistent target compatible paths. This is done through the 55 to consistent target compatible paths. This is done through the
56 ``DEBUG_PREFIX_MAP`` variable which sets the ``-fmacro-prefix-map`` and 56 :term:`DEBUG_PREFIX_MAP` variable which sets the ``-fmacro-prefix-map`` and
57 ``-fdebug-prefix-map`` compiler options correctly to map to target paths. 57 ``-fdebug-prefix-map`` compiler options correctly to map to target paths.
58- Being explicit about recipe dependencies and their configuration (no floating 58- Being explicit about recipe dependencies and their configuration (no floating
59 configure options or host dependencies creeping in). In particular this means 59 configure options or host dependencies creeping in). In particular this means