diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-12 07:35:48 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-13 23:28:30 +0100 |
| commit | 1cf0974ad242f7eb2815a4ef0e3e5b6507ca56ea (patch) | |
| tree | 41ef242b95aa4468862e728bef229545a77d9c11 /meta/recipes-kernel | |
| parent | 3891414b6b929cc3eed9d7ea62e9cda70bba29a0 (diff) | |
| download | poky-1cf0974ad242f7eb2815a4ef0e3e5b6507ca56ea.tar.gz | |
bitbake.conf: Further cleanup compiler optimization flags
Move the -pipe option out of the optimization flags and directly into
the flags variables since we always use it now.
Also move the debug prefix mapping there to match the nativesdk case
which already does this.
Fix the documentation and two recipe usages to match the change.
(From OE-Core rev: 9badf68d78d995f7d5d4cf27e045f029fc6d4044)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
| -rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 058f887b86..ab2dc5ae62 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
| @@ -76,11 +76,10 @@ LDFLAGS="-ldl -lutil" | |||
| 76 | # Perf's build system adds its own optimization flags for most TUs, | 76 | # Perf's build system adds its own optimization flags for most TUs, |
| 77 | # overriding the flags included here. But for some, perf does not add | 77 | # overriding the flags included here. But for some, perf does not add |
| 78 | # any -O option, so ensure the distro's chosen optimization gets used | 78 | # any -O option, so ensure the distro's chosen optimization gets used |
| 79 | # for those. Since ${SELECTED_OPTIMIZATION} always includes | 79 | # for those. Also include ${DEBUG_PREFIX_MAP} which nsures perf is |
| 80 | # ${DEBUG_FLAGS} which in turn includes ${DEBUG_PREFIX_MAP}, this also | 80 | # built with appropriate -f*-prefix-map options, |
| 81 | # ensures perf is built with appropriate -f*-prefix-map options, | ||
| 82 | # avoiding the 'buildpaths' QA warning. | 81 | # avoiding the 'buildpaths' QA warning. |
| 83 | TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION}" | 82 | TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION} ${DEBUG_PREFIX_MAP}" |
| 84 | 83 | ||
| 85 | EXTRA_OEMAKE = '\ | 84 | EXTRA_OEMAKE = '\ |
| 86 | V=1 \ | 85 | V=1 \ |
