mirror of
git://git.yoctoproject.org/poky
synced 2026-10-23 17:55:33 +00:00
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>
This commit is contained in:
1 parent
c9fdc1baab
commit
a1fa8d9ac5
2 files changed
+32
No files matched your search
@@ -26,6 +26,7 @@ SRC_URI += "\
|
||||
file://parallel-makeinst-create-bindir.patch \
|
||||
file://use_sysroot_ncurses_instead_of_host.patch \
|
||||
file://avoid_parallel_make_races_on_pgen.patch \
|
||||
file://add-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/Python-${PV}"
|
||||
|
||||
Reference in new issue
Block a user