summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2021-09-18 07:57:14 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-02 09:57:41 +0100
commitb6b6e81db1274c763bf48ce21a8bd2f8940f39aa (patch)
treeedca63696586b505cc5867054464a0da4266ec47 /documentation
parentaeb712ebb055fadf2fdfd95ae1cad60a142a2fbd (diff)
downloadpoky-b6b6e81db1274c763bf48ce21a8bd2f8940f39aa.tar.gz
ref-manual: extend explanation of PACKAGE_DEBUG_SPLIT_STYLE
The current explanation of this variable seems incomplete, so be a bit more verbose to make sure the reader understands the packaging possibilities. (From yocto-docs rev: 1914705f062b232c10624c11fc85935cc454d2eb) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/variables.rst60
1 files changed, 33 insertions, 27 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index dbe02ab27a..28eb5f233c 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -5064,33 +5064,39 @@ system and gives an overview of their function and contents.
5064 ":ref:`package.bbclass <ref-classes-package>`" section. 5064 ":ref:`package.bbclass <ref-classes-package>`" section.
5065 5065
5066 :term:`PACKAGE_DEBUG_SPLIT_STYLE` 5066 :term:`PACKAGE_DEBUG_SPLIT_STYLE`
5067 Determines how to split up the binary and debug information when 5067 Determines how to split up and package debug and source information
5068 creating ``*-dbg`` packages to be used with the GNU Project Debugger 5068 when creating debugging packages to be used with the GNU Project
5069 (GDB). 5069 Debugger (GDB). In general, based on the value of this variable,
5070 5070 you can combine the source and debug info in a single package,
5071 With the :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable, you can control 5071 you can break out the source into a separate package that can be
5072 where debug information, which can include or exclude source files, 5072 installed independently, or you can choose to not have the source
5073 is stored: 5073 packaged at all.
5074 5074
5075 - ".debug": Debug symbol files are placed next to the binary in a 5075 The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
5076 ``.debug`` directory on the target. For example, if a binary is 5076
5077 installed into ``/bin``, the corresponding debug symbol files are 5077 - "``.debug``": All debugging and source info is placed in a single
5078 installed in ``/bin/.debug``. Source files are placed in 5078 ``*-dbg`` package; debug symbol files are placed next to the
5079 ``/usr/src/debug``. 5079 binary in a ``.debug`` directory so that, if a binary is installed
5080 5080 into ``/bin``, the corresponding debug symbol file is installed
5081 - "debug-file-directory": Debug symbol files are placed under 5081 in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
5082 ``/usr/lib/debug`` on the target, and separated by the path from 5082 package under ``/usr/src/debug``.
5083 where the binary is installed. For example, if a binary is 5083
5084 installed in ``/bin``, the corresponding debug symbols are 5084 - "``debug-file-directory``": As above, all debugging and source info
5085 installed in ``/usr/lib/debug/bin``. Source files are placed in 5085 is placed in a single ``*-dbg`` package; debug symbol files are
5086 ``/usr/src/debug``. 5086 placed entirely under the directory ``/usr/lib/debug`` and separated
5087 5087 by the path from where the binary is installed, so that if a binary
5088 - "debug-without-src": The same behavior as ".debug" previously 5088 is installed in ``/bin``, the corresponding debug symbols are installed
5089 described with the exception that no source files are installed. 5089 in ``/usr/lib/debug/bin``, and so on. As above, source is installed
5090 5090 in the same package under ``/usr/src/debug``.
5091 - "debug-with-srcpkg": The same behavior as ".debug" previously 5091
5092 described with the exception that all source files are placed in a 5092 - "``debug-with-srcpkg``": Debugging info is placed in the standard
5093 separate ``*-src`` pkg. This is the default behavior. 5093 ``*-dbg`` package as with the ``.debug`` value, while source is
5094 placed in a separate ``*-src`` package, which can be installed
5095 independently. This is the default setting for this variable,
5096 as defined in Poky's ``bitbake.conf`` file.
5097
5098 - "``debug-without-src``": The same behavior as with the ``.debug``
5099 setting, but no source is packaged at all.
5094 5100
5095 You can find out more about debugging using GDB by reading the 5101 You can find out more about debugging using GDB by reading the
5096 ":ref:`dev-manual/common-tasks:debugging with the gnu project debugger (gdb) remotely`" section 5102 ":ref:`dev-manual/common-tasks:debugging with the gnu project debugger (gdb) remotely`" section