python: fix invalid library paths leaking into the build, and other improvements
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 22 Dec 2013 17:02:10 +0000 (18:02 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 26 Dec 2013 22:31:32 +0000 (23:31 +0100)
commitb07b9d181ddea2282d8f6018b2f8b808439f67ca
tree50e8cc8f925ea511dd616acb1b27faf9f99b888f
parentd9ddd28bb1247f4b9e2ee6557c27f8739cc58d14
python: fix invalid library paths leaking into the build, and other improvements

This commit improves the cross-compilation patches we have on top of
Python, to fix the problem of host library paths leaking into the
build of target modules, as seen at:

 http://autobuild.buildroot.org/results/fcc/fccd7e08cd9d4713eb4208097dd48c5ab25749bc/build-end.log
 http://autobuild.buildroot.org/results/0bd/0bda780bf4b759b12edec26ac20b88cde617db4d/build-end.log

To do so, it ensures that the right python2.7/config/Makefile is used
when building target modules, and adjusts at runtime the paths read
from this Makefile if we are cross-compiling.

In addition, it installs the pgen program into the host directory, and
points the target python build to use python and pgen from $(HOST_DIR)
instead of from the host python source directory, which looks cleaner.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-python.mk
package/python/python-2.7-015-distutils-cross-compilation-support.patch
package/python/python.mk