summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-02-28 19:21:08 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-02 16:49:07 +0000
commit36754fed127bf2a5b91bbebe5a4c8c350a13c755 (patch)
treef04fb5c213f8ba46f27f7e791a7e5901e28695c8 /meta/conf/bitbake.conf
parent82ff5d0f30a53b38721231d238ceef9e0845e7fe (diff)
downloadpoky-36754fed127bf2a5b91bbebe5a4c8c350a13c755.tar.gz
bitbake.conf: Use -Og in DEBUG_OPTIMIZATION
-Og is for optimized debugging experience. this makes this consistent across different compilers especially gcc and clang, -O in clang is equal to -O2 where as in gcc its similar to -O1 so it was not giving consistent debugging experience across compilers (From OE-Core rev: 16643b03227466e2c80a24c2d079fe36e89553c1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1c5369ec98..85aab98462 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -610,10 +610,10 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
610 610
611# Disabled until the option works properly -feliminate-dwarf2-dups 611# Disabled until the option works properly -feliminate-dwarf2-dups
612FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" 612FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
613DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" 613DEBUG_OPTIMIZATION = "-Og -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
614SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" 614SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}"
615SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" 615SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD"
616BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-O -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" 616BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe"
617BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" 617BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD"
618 618
619################################################################## 619##################################################################