summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/debug_build.bbclass
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2025-10-10 15:52:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:15:35 +0000
commit1689392ea5b75f57c0789169b86d1745fe7769b5 (patch)
treedd1948de8dbc646ed8b9fd730e71abcc1760d305 /meta/classes-recipe/debug_build.bbclass
parentadf7b710d781600e4bb7e65e93a2fa6e3046dd6c (diff)
downloadpoky-1689392ea5b75f57c0789169b86d1745fe7769b5.tar.gz
distro/include: Add debug_build.inc when DEBUG_BUILD is enabled
In bitbake.conf, use ??= to set *_OPTIMIZATION, add a new include file debug_build.inc to use ?= to override *_OPTIMIZATION when DEBUG_BUILD is enabled When DEBUG_BUILD is enabled: - Defer inherit bblcass debug_build, while setting DEBUG_BUILD = "1" in local.conf, the debug build is enabled globally. For the recipe (such as qemu) which doesn't work without optimization, set DEBUG_BUILD = "0" to disable it for a given recipe - Use include_all to allow other layers to add their own debug build configurations Suggested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> (From OE-Core rev: 36144bdd5e25da9a523c68174d110013968e0fdf) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/debug_build.bbclass')
-rw-r--r--meta/classes-recipe/debug_build.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes-recipe/debug_build.bbclass b/meta/classes-recipe/debug_build.bbclass
new file mode 100644
index 0000000000..a917e9cbc9
--- /dev/null
+++ b/meta/classes-recipe/debug_build.bbclass
@@ -0,0 +1,8 @@
1#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7# Allow other layers to add their own debug build configurations
8include_all conf/distro/include/debug_build.inc