summaryrefslogtreecommitdiffstats
path: root/rules/host-python3.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-04-19 20:50:16 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-04-21 07:30:03 +0200
commit6c79cb5ac373b1cccf531e8be3ed1b9722ed1622 (patch)
tree4b51ce4c13129450c7abb96883a1407e8a7d9638 /rules/host-python3.make
parent12aab9286219400de76c73ae6a33eb4495253b20 (diff)
downloadptxdist-6c79cb5ac373b1cccf531e8be3ed1b9722ed1622.tar.gz
ptxdist-6c79cb5ac373b1cccf531e8be3ed1b9722ed1622.tar.xz
[python3] create a separate python3 package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-python3.make')
-rw-r--r--rules/host-python3.make62
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/host-python3.make b/rules/host-python3.make
new file mode 100644
index 000000000..d9d01fcd9
--- /dev/null
+++ b/rules/host-python3.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
+# 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3) += host-python3
+
+#
+# Paths and names
+#
+HOST_PYTHON3_DIR = $(HOST_BUILDDIR)/$(PYTHON3)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_PYTHON3_PATH := PATH=$(HOST_PATH)
+HOST_PYTHON3_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_PYTHON3_AUTOCONF := \
+ $(HOST_AUTOCONF) \
+ --enable-shared \
+ --with-cyclic-gc \
+ --with-pymalloc \
+ --with-signal-module \
+ --with-threads \
+ --with-wctype-functions \
+ --without-cxx
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-python3.install:
+ @$(call targetinfo)
+ @$(call install, HOST_PYTHON3,,h)
+ install -m 0755 $(HOST_PYTHON3_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-$(PYTHON3_MAJORMINOR)
+#
+ @rm -v \
+ "$(PTXCONF_SYSROOT_HOST)/bin/python3" \
+ "$(PTXCONF_SYSROOT_HOST)/bin/python3-config"
+ @$(call touch)
+
+# vim: syntax=make