diff options
Diffstat (limited to 'meta/conf/bitbake.conf')
| -rw-r--r-- | meta/conf/bitbake.conf | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 5406e542db..52ceb76bbb 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -658,13 +658,10 @@ DEBUG_PREFIX_MAP ?= "\ | |||
| 658 | " | 658 | " |
| 659 | DEBUG_LEVELFLAG ?= "-g" | 659 | DEBUG_LEVELFLAG ?= "-g" |
| 660 | 660 | ||
| 661 | FULL_OPTIMIZATION = "-O2 ${DEBUG_LEVELFLAG}" | 661 | FULL_OPTIMIZATION ??= "-O2 ${DEBUG_LEVELFLAG}" |
| 662 | DEBUG_OPTIMIZATION = "-Og ${DEBUG_LEVELFLAG}" | 662 | SELECTED_OPTIMIZATION ??= "${FULL_OPTIMIZATION}" |
| 663 | SELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" | ||
| 664 | SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION DEBUG_BUILD" | ||
| 665 | # compiler flags for native/nativesdk | 663 | # compiler flags for native/nativesdk |
| 666 | BUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-Og -g', '-O2', d)}" | 664 | BUILD_OPTIMIZATION ??= "-O2" |
| 667 | BUILD_OPTIMIZATION[vardeps] += "DEBUG_BUILD" | ||
| 668 | 665 | ||
| 669 | ################################################################## | 666 | ################################################################## |
| 670 | # Reproducibility | 667 | # Reproducibility |
