diff options
-rw-r--r-- | documentation/ref-manual/variables.rst | 17 | ||||
-rw-r--r-- | documentation/test-manual/reproducible-builds.rst | 2 |
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 |