diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-23 21:52:45 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-24 20:05:11 +0100 |
commit | 110ca571b28b622d85025dd661a3163c2cf244a1 (patch) | |
tree | 3cf0a5c303184ffa64160d9bc4b09c1175b5300b /rules/host-python.make | |
parent | 20bad275b26cf4f4abe0f498e8f5f87e4a098bbf (diff) | |
download | ptxdist-110ca571b28b622d85025dd661a3163c2cf244a1.tar.gz ptxdist-110ca571b28b622d85025dd661a3163c2cf244a1.tar.xz |
[host-python] don't interfere with distribution's python
In order to cross compile python, ptxdist will build a special version
of python (i.e. host-python). It is installed to SYSROOT_HOST and the
bin directory is in the PATH.
The host-ipkg-utils need python, too. But we don't want to build
host-python for that, we want to use the distribution's python.
So we delete the executable "python" that is installed by the
"host-python" package. The cross compiler python wrapper will only use
the "python-$VERSION" executable.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/host-python.make')
-rw-r--r-- | rules/host-python.make | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/rules/host-python.make b/rules/host-python.make index 9cd04bfb8..0dbb01e99 100644 --- a/rules/host-python.make +++ b/rules/host-python.make @@ -1,6 +1,6 @@ # -*-makefile-*- # -# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de> +# Copyright (C) 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de> # # See CREDITS for details about who has contributed to this project. # @@ -46,6 +46,16 @@ $(STATEDIR)/host-python.install: @$(call targetinfo) @$(call install, HOST_PYTHON,,h) install -m 0755 $(HOST_PYTHON_DIR)/Parser/pgen $(PTXCONF_SYSROOT_HOST)/bin +# +# remove "python" so that it doesn't interfere with the build +# machine's python +# +# the target build proces will only use python with the +# python-$(PYTHON_MAJORMINOR) +# + @rm -v \ + "$(PTXCONF_SYSROOT_HOST)/bin/python" \ + "$(PTXCONF_SYSROOT_HOST)/bin/python-config" @$(call touch) # vim: syntax=make |