From: Adrian Freihofer <[email protected]> Add a `wants_gdbserver` attribute to modified recipes and evaluate it across the selected set. Only emit warnings about missing `gdbserver` and missing `image-combined-dbg` when at least one recipe actually requires remote debugging support.
This avoids noisy, irrelevant warnings in setups that do not use gdbserver. Signed-off-by: Adrian Freihofer <[email protected]> --- scripts/lib/devtool/ide_sdk.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/lib/devtool/ide_sdk.py b/scripts/lib/devtool/ide_sdk.py index ba225f20b9..d6cda4be9d 100755 --- a/scripts/lib/devtool/ide_sdk.py +++ b/scripts/lib/devtool/ide_sdk.py @@ -427,6 +427,11 @@ class RecipeModified: self.__oe_init_dir = None # main build tool used by this recipe self.build_tool = BuildTool.UNDEFINED + # Whether this recipe benefits from gdbserver and rootfs-dbg in the image. + self.wants_gdbserver = True + # Whether to warn when DEBUG_BUILD is not set. Kernel modules are built + # by the kernel's build system and DEBUG_BUILD does not influence them. + self.wants_debug_build = True # build_tool = cmake self.oecmake_generator = None self.cmake_cache_vars = None @@ -1156,12 +1161,14 @@ def ide_setup(args, config, basepath, workspace): exec_build_env_command( config.init_path, basepath, bb_cmd_late, watch=True) + wants_gdbserver = any( + r.wants_gdbserver for r in recipes_modified) for recipe_image in recipes_images: - if (recipe_image.gdbserver_missing): + if wants_gdbserver and recipe_image.gdbserver_missing: logger.warning( "gdbserver not installed in image %s. Remote debugging will not be available" % recipe_image) - if recipe_image.combine_dbg_image is False: + if wants_gdbserver and recipe_image.combine_dbg_image is False: logger.warning( 'IMAGE_CLASSES += "image-combined-dbg" is missing for image %s. Remote debugging will not find debug symbols from rootfs-dbg.' % recipe_image) @@ -1178,7 +1185,7 @@ def ide_setup(args, config, basepath, workspace): ide.setup_modified_recipe( args, recipe_image, recipe_modified) - if recipe_modified.debug_build != '1': + if recipe_modified.wants_debug_build and recipe_modified.debug_build != '1': logger.warn( 'Recipe %s is compiled with release build configuration. ' 'You might want to add DEBUG_BUILD = "1" to %s. ' -- 2.53.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#231697): https://lists.openembedded.org/g/openembedded-core/message/231697 Mute This Topic: https://lists.openembedded.org/mt/117965269/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
