summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python_2.7.9.bb
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2015-11-27 18:22:51 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-12 23:42:52 +0000
commita1fa8d9ac53625737aab29b4e5e1687fc01bdfc2 (patch)
treeea0ace10583d90e824412ce8660cecd247d819dd /meta/recipes-devtools/python/python_2.7.9.bb
parentc9fdc1baaba49c63db8d4695f670889fe79b3946 (diff)
downloadpoky-a1fa8d9ac53625737aab29b4e5e1687fc01bdfc2.tar.gz
python: Fix cross compiling issue
If the target and host have the same type, the system may try to execute the instructions from the target version. This can lead to illegal instructions as well as the wrong copy of the code running. Add CROSSPYTHONPATH for PYTHON_FOR_BUILD and export the correct path to fix it. (From OE-Core rev: 1cda7afd4173100e4185ee8759f6b2770bc93b72) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python_2.7.9.bb')
-rw-r--r--meta/recipes-devtools/python/python_2.7.9.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.9.bb b/meta/recipes-devtools/python/python_2.7.9.bb
index bc20417674..f585a53d58 100644
--- a/meta/recipes-devtools/python/python_2.7.9.bb
+++ b/meta/recipes-devtools/python/python_2.7.9.bb
@@ -26,6 +26,7 @@ SRC_URI += "\
26 file://parallel-makeinst-create-bindir.patch \ 26 file://parallel-makeinst-create-bindir.patch \
27 file://use_sysroot_ncurses_instead_of_host.patch \ 27 file://use_sysroot_ncurses_instead_of_host.patch \
28 file://avoid_parallel_make_races_on_pgen.patch \ 28 file://avoid_parallel_make_races_on_pgen.patch \
29 file://add-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch \
29" 30"
30 31
31S = "${WORKDIR}/Python-${PV}" 32S = "${WORKDIR}/Python-${PV}"