When confiure for powerpc-spe target, the following check will fail due to PLATFORM_TRIPLET and MULTIARCH is not identical. PLATFORM_TRIPLET is set to "powerpc-linux-gnuspe", MULTIARCH is "powerpc-linux-gnuspev1" which is returned by $CC --print-multiarch. So set PLATFORM_TRIPLET to empty for powerpc-spe target to skip the check.
Signed-off-by: Zhenhua Luo <zhenhua....@nxp.com> --- ...ython3-fix-configure-issue-of-powerpc-spe.patch | 26 ++++++++++++++++++++++ meta/recipes-devtools/python/python3_3.5.1.bb | 1 + 2 files changed, 27 insertions(+) create mode 100644 meta/recipes-devtools/python/python3/python3-fix-configure-issue-of-powerpc-spe.patch diff --git a/meta/recipes-devtools/python/python3/python3-fix-configure-issue-of-powerpc-spe.patch b/meta/recipes-devtools/python/python3/python3-fix-configure-issue-of-powerpc-spe.patch new file mode 100644 index 0000000..c18a3e6 --- /dev/null +++ b/meta/recipes-devtools/python/python3/python3-fix-configure-issue-of-powerpc-spe.patch @@ -0,0 +1,26 @@ +configure.ac: fix configure issue for powerpc-spe target + +When confiure for powerpc-spe target, the following check will fail due to +PLATFORM_TRIPLET and MULTIARCH is not identical. PLATFORM_TRIPLET is set to +"powerpc-linux-gnuspe", MULTIARCH is "powerpc-linux-gnuspev1" which is returned +by $CC --print-multiarch. So set PLATFORM_TRIPLET to empty for powerpc-spe +target to skip the check. + + if test x$PLATFORM_TRIPLET != x$MULTIARCH; then + as_fn_error "..." + +Upstream-Status: Pending + +Signed-off-by: Zhenhua Luo <zhenhua....@nxp.com> + +--- Python-3.5.1/configure.ac.orig 2016-03-11 06:02:38.955270329 -0600 ++++ Python-3.5.1/configure.ac 2016-03-11 06:03:05.491269382 -0600 +@@ -801,7 +801,7 @@ + # elif defined(__or1k__) + or1k-linux-gnu + # elif defined(__powerpc__) && defined(__SPE__) +- powerpc-linux-gnuspe ++ + # elif defined(__powerpc64__) + # if defined(__LITTLE_ENDIAN__) + powerpc64le-linux-gnu diff --git a/meta/recipes-devtools/python/python3_3.5.1.bb b/meta/recipes-devtools/python/python3_3.5.1.bb index 11f959b..3eb938a 100644 --- a/meta/recipes-devtools/python/python3_3.5.1.bb +++ b/meta/recipes-devtools/python/python3_3.5.1.bb @@ -37,6 +37,7 @@ SRC_URI += "\ file://setup.py-find-libraries-in-staging-dirs.patch \ file://use_packed_importlib.patch \ file://configure.ac-fix-LIBPL.patch \ + file://python3-fix-configure-issue-of-powerpc-spe.patch \ " SRC_URI[md5sum] = "e9ea6f2623fffcdd871b7b19113fde80" SRC_URI[sha256sum] = "c6d57c0c366d9060ab6c0cdf889ebf3d92711d466cc0119c441dbf2746f725c9" -- 2.4.3 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core