diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-06-03 12:20:33 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-06-03 12:21:39 +0200 |
commit | 8ad061535dba52bc113204fe08e1e57b1129baf0 (patch) | |
tree | 76046914f64f52181eb0be0b8f5b95c855c29c79 | |
parent | 2cf310a83bad2b6cd6321131f81051d720bb9539 (diff) | |
download | ptxdist-8ad061535dba52bc113204fe08e1e57b1129baf0.tar.gz ptxdist-8ad061535dba52bc113204fe08e1e57b1129baf0.tar.xz |
host-system-python: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/host-system-python.in | 12 | ||||
-rw-r--r-- | rules/host-system-python.make | 34 |
2 files changed, 46 insertions, 0 deletions
diff --git a/rules/host-system-python.in b/rules/host-system-python.in new file mode 100644 index 000000000..84178719d --- /dev/null +++ b/rules/host-system-python.in @@ -0,0 +1,12 @@ +## SECTION=hosttools_noprompt + +config HOST_SYSTEM_PYTHON + tristate + default y + +if HOST_SYSTEM_PYTHON + +config HOST_SYSTEM_PYTHON_XML2 + bool + +endif diff --git a/rules/host-system-python.make b/rules/host-system-python.make new file mode 100644 index 000000000..9ada60cf7 --- /dev/null +++ b/rules/host-system-python.make @@ -0,0 +1,34 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 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 +# +PACKAGES-$(PTXCONF_HOST_SYSTEM_PYTHON) += host-system-python + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-system-python.prepare: + @$(call targetinfo) + @echo "Checking for Python ..." + @python -V >/dev/null 2>&1 || \ + ptxd_bailout "'python' not found! Please install."; +ifdef PTXCONF_HOST_SYSTEM_PYTHON_XML2 + @echo "Checking for Python libxml2 bindings ..." + @python -c 'import libxml2' 2>/dev/null || \ + ptxd_bailout "Python libxml2 module not found! \ + Please install python-libxml2 (debian)"; +endif + @echo + @$(call touch) + +# vim: syntax=make |