summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/python/python3_3.5.5.bb12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-devtools/python/python3_3.5.5.bb b/meta/recipes-devtools/python/python3_3.5.5.bb
index cd60857926..40896dbc08 100644
--- a/meta/recipes-devtools/python/python3_3.5.5.bb
+++ b/meta/recipes-devtools/python/python3_3.5.5.bb
@@ -76,7 +76,7 @@ SDK_CC_ARCH += "-DNDEBUG -fno-inline"
76EXTRA_OEMAKE += "CROSS_COMPILE=yes" 76EXTRA_OEMAKE += "CROSS_COMPILE=yes"
77EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ --without-ensurepip" 77EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ --without-ensurepip"
78 78
79PYTHON3_PROFILE_TASK ?= "${S}/Tools/pybench/pybench.py -n 1" 79PYTHON3_PROFILE_TASK ?= "./python -m test.regrtest --pgo test_grammar test_opcodes test_dict test_builtin test_exceptions test_types test_support || true"
80 80
81export CROSS_COMPILE = "${TARGET_PREFIX}" 81export CROSS_COMPILE = "${TARGET_PREFIX}"
82export _PYTHON_PROJECT_BASE = "${B}" 82export _PYTHON_PROJECT_BASE = "${B}"
@@ -144,13 +144,15 @@ do_compile() {
144 if ${@bb.utils.contains('PACKAGECONFIG', 'pgo', 'true', 'false', d)}; then 144 if ${@bb.utils.contains('PACKAGECONFIG', 'pgo', 'true', 'false', d)}; then
145 run_make profile-opt 145 run_make profile-opt
146 qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${B}', '${STAGING_DIR_TARGET}/${base_libdir}'])}" 146 qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${B}', '${STAGING_DIR_TARGET}/${base_libdir}'])}"
147 cat > pgo-image-qemuwrapper << EOF 147 cat >pgo-wrapper <<EOF
148#!/bin/sh 148#!/bin/sh
149set -x 149cd ${B}
150$qemu_binary "\$@" 150$qemu_binary "\$@"
151EOF 151EOF
152 chmod +x pgo-image-qemuwrapper 152 chmod +x pgo-wrapper
153 ./pgo-image-qemuwrapper ${B}/python ${PYTHON3_PROFILE_TASK} || true 153 bbnote Gathering profiling data
154 ./pgo-wrapper ${PYTHON3_PROFILE_TASK}
155 bbnote Profiling data gathered, rebuilding
154 run_make clean_and_use_profile 156 run_make clean_and_use_profile
155 else 157 else
156 run_make libpython3.so 158 run_make libpython3.so