diff options
-rw-r--r-- | rules/host-python.in | 8 | ||||
-rw-r--r-- | rules/host-python.make | 79 |
2 files changed, 87 insertions, 0 deletions
diff --git a/rules/host-python.in b/rules/host-python.in new file mode 100644 index 000000000..dab9cae51 --- /dev/null +++ b/rules/host-python.in @@ -0,0 +1,8 @@ +## SECTION=hosttools_noprompt + +config HOST_PYTHON + tristate + help + Python is an interpreted, interactive, + object-oriented, extensible programming language. + 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 |