diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-12 07:23:40 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-13 23:28:30 +0100 |
| commit | 3891414b6b929cc3eed9d7ea62e9cda70bba29a0 (patch) | |
| tree | 83a8ba47d2b98fae12a04cb723fa982fa8a41931 /meta/conf | |
| parent | ca1ce0ee8bd5263db605bbfd7ee10de07653c40d (diff) | |
| download | poky-3891414b6b929cc3eed9d7ea62e9cda70bba29a0.tar.gz | |
bitbake.conf: Drop obsolete debug compiler options
eliminate-unused-debug-types is a compiler default so we no longer
need to specify this. Drop the option. Also drop an obsolete comment
about another debug flag.
(From OE-Core rev: 1d5162689fbfeddb10fa60e4150ca87f1fa2243e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
| -rw-r--r-- | meta/conf/bitbake.conf | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 3ef2deb088..02fe872d2c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -663,14 +663,13 @@ DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \ | |||
| 663 | -fmacro-prefix-map=${STAGING_DIR_HOST}= \ | 663 | -fmacro-prefix-map=${STAGING_DIR_HOST}= \ |
| 664 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | 664 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ |
| 665 | " | 665 | " |
| 666 | DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" | 666 | DEBUG_FLAGS ?= "-g ${DEBUG_PREFIX_MAP}" |
| 667 | 667 | ||
| 668 | # Disabled until the option works properly -feliminate-dwarf2-dups | ||
| 669 | FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" | 668 | FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" |
| 670 | DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} -pipe" | 669 | DEBUG_OPTIMIZATION = "-Og ${DEBUG_FLAGS} -pipe" |
| 671 | SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" | 670 | SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" |
| 672 | SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" | 671 | SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" |
| 673 | BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g -feliminate-unused-debug-types', '-O2', d)} -pipe" | 672 | BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g', '-O2', d)} -pipe" |
| 674 | BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" | 673 | BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" |
| 675 | 674 | ||
| 676 | ################################################################## | 675 | ################################################################## |
