diff options
-rw-r--r-- | meta/recipes-devtools/python/python3_3.11.5.bb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python3_3.11.5.bb b/meta/recipes-devtools/python/python3_3.11.5.bb index d375de4b19..e7b2b08f7f 100644 --- a/meta/recipes-devtools/python/python3_3.11.5.bb +++ b/meta/recipes-devtools/python/python3_3.11.5.bb | |||
@@ -129,18 +129,24 @@ EXTRA_OEMAKE = '\ | |||
129 | LIB=${baselib} \ | 129 | LIB=${baselib} \ |
130 | ' | 130 | ' |
131 | 131 | ||
132 | do_compile:prepend:class-target() { | 132 | # Generate a Profile Guided Optimisation wrapper script that uses qemu-user for |
133 | # all cross builds. | ||
134 | write_pgo_wrapper:class-native = ":" | ||
135 | write_pgo_wrapper() { | ||
133 | if ${@bb.utils.contains('PACKAGECONFIG', 'pgo', 'true', 'false', d)}; then | 136 | if ${@bb.utils.contains('PACKAGECONFIG', 'pgo', 'true', 'false', d)}; then |
134 | qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${B}', '${STAGING_DIR_TARGET}/${base_libdir}'])}" | ||
135 | cat >pgo-wrapper <<EOF | 137 | cat >pgo-wrapper <<EOF |
136 | #!/bin/sh | 138 | #!/bin/sh |
137 | cd ${B} | 139 | cd ${B} |
138 | $qemu_binary "\$@" | 140 | ${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${B}', '${STAGING_DIR_TARGET}/${base_libdir}'])} "\$@" |
139 | EOF | 141 | EOF |
140 | chmod +x pgo-wrapper | 142 | chmod +x pgo-wrapper |
141 | fi | 143 | fi |
142 | } | 144 | } |
143 | 145 | ||
146 | do_compile:prepend() { | ||
147 | write_pgo_wrapper | ||
148 | } | ||
149 | |||
144 | do_install:prepend() { | 150 | do_install:prepend() { |
145 | ${WORKDIR}/check_build_completeness.py ${T}/log.do_compile | 151 | ${WORKDIR}/check_build_completeness.py ${T}/log.do_compile |
146 | } | 152 | } |