diff options
Diffstat (limited to 'poky/meta/recipes-devtools/python/python3_3.11.5.bb')
-rw-r--r-- | poky/meta/recipes-devtools/python/python3_3.11.5.bb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/poky/meta/recipes-devtools/python/python3_3.11.5.bb b/poky/meta/recipes-devtools/python/python3_3.11.5.bb index d375de4b19..e7b2b08f7f 100644 --- a/poky/meta/recipes-devtools/python/python3_3.11.5.bb +++ b/poky/meta/recipes-devtools/python/python3_3.11.5.bb @@ -129,18 +129,24 @@ EXTRA_OEMAKE = '\ LIB=${baselib} \ ' -do_compile:prepend:class-target() { +# Generate a Profile Guided Optimisation wrapper script that uses qemu-user for +# all cross builds. +write_pgo_wrapper:class-native = ":" +write_pgo_wrapper() { if ${@bb.utils.contains('PACKAGECONFIG', 'pgo', 'true', 'false', d)}; then - qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${B}', '${STAGING_DIR_TARGET}/${base_libdir}'])}" cat >pgo-wrapper <<EOF #!/bin/sh cd ${B} -$qemu_binary "\$@" +${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${B}', '${STAGING_DIR_TARGET}/${base_libdir}'])} "\$@" EOF chmod +x pgo-wrapper fi } +do_compile:prepend() { + write_pgo_wrapper +} + do_install:prepend() { ${WORKDIR}/check_build_completeness.py ${T}/log.do_compile } |