diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-05 17:33:15 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-05 17:33:15 +0000 |
commit | 9a67fe7825dd3ec7e2b6826099a676d17c542d2f (patch) | |
tree | b760a57e6747adaf56dfdc67f295ac2a0f207a1e /rules/host-python.make | |
parent | eef994411c20653cde95b35266000e3a8754e3b3 (diff) | |
download | ptxdist-9a67fe7825dd3ec7e2b6826099a676d17c542d2f.tar.gz ptxdist-9a67fe7825dd3ec7e2b6826099a676d17c542d2f.tar.xz |
[host-python] add host version of python-2.6.2
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10366 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-python.make')
-rw-r--r-- | rules/host-python.make | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/rules/host-python.make b/rules/host-python.make new file mode 100644 index 000000000..d99dd8058 --- /dev/null +++ b/rules/host-python.make @@ -0,0 +1,79 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2009 by Marc Kleine-Budde <mkl@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_PYTHON) += host-python + +# +# Paths and names +# +HOST_PYTHON_DIR = $(HOST_BUILDDIR)/$(PYTHON) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-python.get: $(STATEDIR)/python.get + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-python.extract: + @$(call targetinfo) + @$(call clean, $(HOST_PYTHON_DIR)) + @$(call extract, PYTHON, $(HOST_BUILDDIR)) + @$(call patchin, PYTHON, $(HOST_PYTHON_DIR)) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_PYTHON_PATH := PATH=$(HOST_PATH) +HOST_PYTHON_ENV := $(HOST_ENV) + +# +# autoconf +# +HOST_PYTHON_AUTOCONF := \ + $(HOST_AUTOCONF) \ + --enable-shared \ + --with-cyclic-gc \ + --with-pymalloc \ + --with-signal-module \ + --with-threads \ + --with-wctype-functions \ + --without-cxx + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-python.install: + @$(call targetinfo) + @$(call install, HOST_PYTHON,,h) + install -m 0755 $(HOST_PYTHON_DIR)/Parser/pgen $(PTXCONF_SYSROOT_HOST)/bin + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +host-python_clean: + rm -rf $(STATEDIR)/host-python.* + rm -rf $(HOST_PYTHON_DIR) + +# vim: syntax=make |