Jump to content

Preparing Yocto Development Environment for Debugging: Difference between revisions

Line 17: Line 17:
       dev-pkgs"        # OPTIONAL: adds -dev packages for all installed packages
       dev-pkgs"        # OPTIONAL: adds -dev packages for all installed packages


# Making images useful for debugging.
# Specifies to build packages with debugging information
SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}"
DEBUG_BUILD = "1"
DEBUG_BUILD = "1"


Line 31: Line 30:
: By editing this variable, we can add the desired packages to be included in our generated image. Bear in mind, however, that adding these will increase the size and time needed for building the image. In the following sections, there is a set list of necessary packages for the recommended tools.
: By editing this variable, we can add the desired packages to be included in our generated image. Bear in mind, however, that adding these will increase the size and time needed for building the image. In the following sections, there is a set list of necessary packages for the recommended tools.
;DEBUG_BUILD   
;DEBUG_BUILD   
:Enables full debug and backtrace capabilities for all programs and libraries in the image.
:Enables full debug and backtrace capabilities for all programs and libraries in the image, by modifying the SELECTED_OPTIMIZATION variable, setting it to "DEBUG_OPTIMIZATION".  
;INHIBIT_PACKAGE_STRIP
;INHIBIT_PACKAGE_STRIP
:This is needed to ensure that in the process of building, debugging symbols aren't stripped by Yocto from the binaries it packages. '''Note:''' If this is only needed for a specific recipe, it can be added by using OVERRIDES.
:This is needed to ensure that in the process of building, debugging symbols aren't stripped by Yocto from the binaries it packages. '''Note:''' If this is only needed for a specific recipe, it can be added by using OVERRIDES.
352

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.